PHP - Firefox Window Fontsize Is Very Little
Hi guys,
I have something weird and fiddled around this morning but cant seem to find a propper solution.
The fonts in (only) my firefox window are very small. So I'm not speaking about webcontent itself but about the pure firefox interface (addressbar, toolbars etc).
To make it even weirder, I have another user on my windows machine that has the correct settings it seems. This all happend this morning.
Does anyone know where i can find settings for this?
Just to be clear its not a Zoom/dpi issue (webcontent is displayed fine, and all programs do their thing correctly).
Cheers in advanced!
edit: P.s. I check the settings under about:config but they are the same as the other windows user.
Edited by cssfreakie2, 15 January 2015 - 08:30 AM. Similar TutorialsScenario :
I would like to open the main program window and at the same time, if a condition is met, open a second - popup window to alert the user of previous information stored in the database.
This is an easy exercise if I use a hyperlink to open th second (popup) window but this is not the process required .
Can someone point me in the right direction ?
Cheers and thanks
I'm wondering what makes a pop-up login window run differently than inside a webpage. I can't seem to get my login system to bring the user back to the page (brings them to a page can't be found) when clicking a form submit button when it is included in the webpage. But if your in the popup page that I'm trying to include, it works no problem so I was wondering if it changes anything. Or if there is some sort of work around (such as embedding a popup window into the webpage). Thanks a lot! Hi Chaps, Fully aware that this is not strictly a PHP based query, but I am hving problems with PHP / File Uploads to a FTP site. Basically, I have a PHP app that requires login, the login credentials determine which FTP folder to read on sucessful login. The user can then browse the FTP folder, upload and download files. The user cannot access/view any FTP folders other than their specific folder. I'm looking into alternatives to PHP/PHP_FTP file uploads, as using Form POSTs or Java has caused problems for some, but not for others. My question is: is there any controls that can open a MS-style Explorer FTP Window, outside of the app (i.e. in a pop-out exporer window) that can restricted a user to a certain folder level e.g.: Quote FTP-Root - Freelance - User-A - Folder-1 - Folder-2 - Folder-3 - User-B - Folder-1 This would mean that when User A logs in, his default FTP Window/access would be User-A, and would be able to browse down to Folder-3, but could not see User-B, Freelance or FTP-Root folders. Again, sorry if this is misplaced. Trying to get popup window to work in php. Keep getting template parse errors. Here's the code I've been using in HTML: Code: [Select] echo ' <a onClick="window.open('annexplayerpop.shtm','popup','height=275,width=425,top=130,left=280,scrollbars=no')" target="popup"><img src="popupbutton-blue-bg.png" title="Popup MP3 Player" border="0" height="45" width="58"></a> '; Hii.... I simply want to know the answer of a simple question "Is it possible to do Window Programming in PHP?", like C++, .net, etc.....and if so then where I can find links for the tutorials..... hi there i have a basic image gallery. it displays smaller thumbnails in a folder and when you click on them it displays a larger image. how can i make the larger image open in a seperate window of 640x480 when the thumbnail is clicked? thanks here is the code: <?php include('connect.php'); $images = "images/"; # Location of small versions $big = "big/"; # Location of big versions (assumed to be a subdir of above) $cols = 4; # Number of columns to display if ($handle = opendir($images)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file != rtrim($big,"/")) { $files[] = $file; } } closedir($handle); } $colCtr = 0; echo '<table width="50%" cellspacing="3" align=center ><tr>'; foreach($files as $file) { if($colCtr %$cols == 0) echo '</tr><tr><td colspan="10" ></td></tr><tr>'; echo '<td ><a href="' . $images . $big . $file . '" ><img src="' . $images . $file . '" /></a></td>'; $colCtr++; } echo '</table>' . "\r\n"; ?> I have a page that will sort my DB table by name and telephone number. And it has a button. I want visitors to be able to input a last name, and have the telephone number provided in a SEPERATE and NEW window after they click the button. Any suggestions for best procedure? My two initial concepts a 1- Make this a form, with the "action" leading to a file like SELECT *FROM myTable WHERE last name="$inputname" and have then use Javascript ONSUBMIT to open a NEW window. (not sure it will succeed as I desire) 2- Make this a simple BUTTON with Javascript pointing everything to the file to process the quiery. PS: I've heard IE doesn't always handle "_BLANK" properly, and I'm unaware of a PHP method. Haven't thought it through entirely, so I'm looking for pointers and advise. I would like to open a new IE window. But, failed to do that. Is there any wrong with my statements? Code: [Select] <?php $url='http://www.google.com'; $browser = new COM("InternetExplorer.Application"); $browser->Visible = true; $browser->Navigate($url); ?> Can anyone help me with this pls? Thank you. Regards, juzz hey guys,i'm back with a new prob.. i have an image here that when clicked using onclick, will open a window and sort of pass the php values to the window. okay,it's confusing but perhaps this will help you understand. let me break it down. this is what the image code looks like. i have placed this inside the php echo. Code: [Select] <img src="images/edit.png" alt="Edit rooms" width="16" height="16" onclick="window.open(\'edit.php?course='.$row['c_name'].'&year='.$row['year'].'&block='.$row['block'].'\',\'width=300, height=200, menubar=yes\')"/> now my problem is i can't seem to get all three of the values, c_name,year and block to be posted on the window.. here's the code on edit.php: Code: [Select] <?php include("dbcon.php"); $course = $_GET['c_name']; $year = $_GET['year']; $block = $_GET['block']; ?> <html> <body> Course:<input type="text" name="course" value="<?php echo $course;?>"><br> Year:<input type="text" name="year" value="<?php echo $year;?>"><br> Block:<input type="text" name="block" value="<?php echo $block;?>"><br></html> i have already used $_GET as you can see but only year and block appear on the form. i get a notice saying that c_name is an undefined index. i am really confused and i don't know what the problem is. i hope you guys can help me.. Hi everyone. i need to open a new window in php using a bit of javascript.. or maybe not, with an id number. any help would be appreciated. This code doesn't do anything even though there are no errors. Any ideas on how why? Code: [Select] <input type="submit" name="SaveData" id="SaveData" value="Save" /> <?php if (isset($_POST['SaveData'])) { $loc = "saveddata.php?IDNumber=" . $IDNumber; echo "<script LANGUAGE='JavaScript'>"; echo "window.open($loc,'mywin','left=20,top=20,width=500,height=500,toolbar=0,resizable=1')"; echo "</script>"; } ?> I have the below code to open contents in a div or modal window and at the same time showing the url that matches the specified page which works as expected, no problems rising:
$(document).ready(function(){ ///////LINK in a Div//////// $('#all').delegate('a.img-lnk, a.txt-lnk', 'click', function(){ $('#main').empty(); var page = $(this).attr('id'); var pageurl = $(this).attr('data-seo'); $('#main').load("../"+ page + ".php"); window.history.pushState('','',pageurl); }); ///////LINK in a Modal Window//////// $('#all').delegate('a.pop-lnk', 'click', function(){ var poppage = $(this).attr('id'); var popurl = $(this).attr('data-seo'); $('#popup').load("../char-inf/"+ poppage + ".php"); window.history.pushState('','',"/char-inf/"+ popurl); }); $('body').delegate('.hide-it', 'click', function(){ $('.hide-it').hide(); $('#popup').empty(); window.history.back(); }); });Problem: If I give you a url of a link in my page e.g. www.example.com/test1 and paste it in your browser the test1 page will open normally, BUT after that if you navigate to page test2 then the new url becomes www.example.com/test1/test2. Is there a way to turn the url at its normal state which would be www.example.com/test2? Hi there (I'm new at PHP/mysql) I am busy with a project - I maneged to load info into the mysql database and display the results BUT - now I need some Help I can display the result - now I want to have the ability to click on the result and it must open a new page with only the selected result information? Hello,
I would like to create a window through JavaScript with PHP code that would insert data into a database, but I don't know if it's possible, because I tried everything I could so far and had no results at all.
The code I am using is
<script language="JavaScript"> <!-- top.consoleRef = new Object(); top.consoleRef.closed = true; function writeConsole(content) { top.consoleRef=window.open('em_branco.php','myconsole','width=350,height=250') top.consoleRef.document.writeln( '<html><head><title>página nova</title></head><body><?php $db = pg_connect("host=localhost dbname=dpf_db user=postgres password=asdasd"); $query = "INSERT INTO tbl_dummy(nome) VALUES(' + '´treco´' + ')"; $result = pg_query($query); if (!$result) { $errormessage = pg_last_error(); echo "Error with query: " . $errormessage; exit(); } printf ("These values were inserted into the database"); pg_close(); ?></body></html>' ) //top.consoleRef.document.close() } //--> </script>Note that line 13 has a sort of aberration, because I'd need three kinds of quotes, and not only two (the +'´treco´' stuff). And I don't know how to circumvent this, because escaping didn't work either. Any help is most welcome, and thank you in advance for your attention. Nicole I'm working on customizing an open-source PHP CRM system (SugarCRM) and need some straightforward PHP help. I'm working thru an old example of writing changes to a log file and I'd like to take it one step further and open a new browser window once the save/write is done. Using the code below, could someone please direct me how to open the new window?. I basically want to pop open a new browser window from within the function below. I tried fopen, but it times out when going to a test URL such as http://www.cnn.com function UserToLog($strText){ $File = 'C:\wamp\www\log.txt'; $Handle = fopen($File, 'a'); $Data = $strText . "\n"; if($Handle){ fwrite($Handle, $Data); fclose($Handle); } //WANT TO OPEN NEW BROWSER WINDOW HERE...or wherever is correct. } All assistance is greatly appreciated. Thanks! Hi everyone, I had an earlier topic, http://www.phpfreaks.com/forums/index.php/topic,308202.0.html which was asking about how to make a top to bottom, left to right layout. I've figured out what I need to do, but am now stuck on another dilemma. <body onResize="window.location=window.location;" style="overflow-x:hidden"> <?php if (empty($_POST['height'])){ ?> <form name='detect' method='post' action=<?php print $php_SELF;?>> <input type='hidden' name='height' value='height' /> </form> <script language="javascript"><!-- var insideheight = window.innerHeight; window.document.detect.height.value = insideheight; window.document.forms['detect'].submit(); --> </script> <?php } $height = $_POST['height']; echo $height; ?> <div id="header"> </div> <div id="main"> <?php //Initialize variables $col=1; $rows=1; $id=1; $baseheight = 147; $i = 10; $space = $height - $baseheight; //Column Loop while ($col<=4){ echo "<div id=\"container".$col."\">"; //Row Loop if ($height >= 810){ $i=13; } else if ($height >= 759){ $i=12; } else if ($height >= 708){ $i=11; } while ($rows<=$i){ echo "<div class=\"single\">"; echo $id; echo "</div>"; $id++; $rows++; } //Reset row count if ($rows=$i) { $rows=1; $col++; } echo "</div>"; } ?> <script type="text/javascript"> if (window.innerWidth<1100){ document.write('no'); target = document.getElementById('container4'); target.style.display = "none"; } For the moment, the width (container#) is fine. That all works ok. Its the singular rows thats causing me problems. I know what I want to do, and also a hard coded way of doing it, however i'm unsure of how to do it in a better coded way. For example the part if ($height >= 810){ $i=13; } else if ($height >= 759){ $i=12; } else if ($height >= 708){ $i=11; } Works great, except they are hard coded values up until 13. I know that each row needs 51 pixels, and I need to do some sort of loop working out how much ontop of the original 10 rows I need to increment by. I'm not quite sure if i'm making much sense, but any help would be hugely appreciated. Thanks Edd This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=306168.0 Hi, I was just wondering if it were possible (and if so how) to open a page in a new window when submitting a form via php? E.g. I have a poll on my website that is directed to the reults page by $insertGoTo = "results.php";. This all works but what I want to happen is for when the user clicks submit that the results page displays in a new window (or at the very least a new tab), similar to what would happen when you put a target=_blank on a html link. Any help would be very appreciated. Thanks. I need to close a window if referer not valid, but it cannot be in HTML, needs to be php. This is what I have so far: Code: [Select] if (ereg("http://www.mysite.com/test.php", $_SERVER['HTTP_REFERER']) != true){ header('Location: ?????????'); exit; } I get a header already sent message if I use a URL. I need it to close the window after 3 seconds. Any ideas? Hi all.
I want to print a specific div when a button linked to it is clicked.
Here is the code that works, even in Opera :
function printContent(el){ var restorepage = document.body.innerHTML; printcontent=document.getElementById(el).innerHTML; document.body.innerHTML = printcontent; window.print(); document.body.innerHTML = restorepage; }However I want to add an image and some text before the content of the div. Here is the code that does not work in Opera : function printContent(el){ var restorepage = document.body.innerHTML; var printcontent = '<center><img alt="logo" src="image.jpg" height="160" width="240" /> BLABLABLA<br></center>'; printcontent+=document.getElementById(el).innerHTML; document.body.innerHTML = printcontent; window.print(); document.body.innerHTML = restorepage; }If I add just text instead of an image, the script runs normally. Thanks for your help. |