Is there a way to request a server script through javascript without
having the browser navigate to another page? Similar to the effects
of calling the server.execute method in ASP. Is anyone familiar with
a method to accomplish this?
I have a quiz application made in PHP. The quizzes have a time limit, and i display the time left using javascript in a textfield. I always initialize the timer on document load. I also have a page navigation that switch between pages, and i maintain the time value from the last page.
Now the problem is that if the user clicks on back button of the browser and after on forward, the timer gets reinitialized with the start time, and in this way he can cheat. Can you please tell me how can i disable all navigation on my page?
I am trying to trigger the download of a file from the browser (at the moment a word file!).
But when I supply the link as an '<a href='...'>' html tag the document appears in the browser. Although this is quite good I unfortunately need to open up the download dialog box.
I'm trying to find a javascript/DOM navigation tree to use in a web-based content management system, to allow navigation of > 10,000 folders/files.
The javascript (non-DOM) tree we currently use is running too slowly as it cannot dynamically load in nodes when users select a node to expand. This is critical for us. The top level of the tree hirarchy only has 20 or so nodes, but each node might contain up to 1,000 nodes.
So what we need is for the tree to process and display the first tier (20 nodes) and then only process sub-nodes if the expand icon is clicked.
Does anyone know whether such a tree exists?
It needs to be compatible with all modern browsers (IE 5+, Netscape 6+, Opera 7+, Konqueror 2+, Safari etc). I've looked at several different examples, but none of them (AFAIK) appear to be fully compatible with the above list of browsers.
Exactly what i want to know is, In my product we are using xmlhttp request to retrive some data from the server, And Im using IE browser, its working fine in IE.
Now i want to work with netscape,I dont know how to pass the xmlhttp request in Netscape. i got some code like below for netscape for xmlhttp
var oXML=new XMLHttpRequest(); oXML.open("GET","http://google.com",false); oXML.send(null); document.write(oXML.responseText);
but its not woking, it shows some uncaught exception error.
So can u suggest me some code for xmlhttp request for Netscape,Im using version 8.1 netscape browser.
I would like to disable back and forward button + Refresh button. Please help in doing this. I want this because i am displaying data from mysql database and on back and forward button complete logic get failed.
I am trying to find the simplest, most cross-browser friendly dynamic navigation for my site. I tried to use a CSS version (Suckerfish) and it worked ok but it destroyed the formatting I had. I would really like to implement this kind of dropdown on my main navigation so users don't have to click and wait for a page to load. If possible, I'd like very few lines of code. That's why the CSS option was good... there was very little javascript.
My prob is that the huge amount of data (15MB of XML) that is loaded by an AJAX call, literally locks the browser while loading it into the DOM. Does any of you know if there is a way to prevent that. Btw - As you see I use jQuery and the ajaxManager plugin.
In a page , i need to give multiple xmlhttp request in a single page sequencely, In case of IE browser it working fine, But incase of Netscape browser, first xmlhttp request is going and im getting the response for that request, and im sending the second request but it is not going.
I worked with now in jQuery. Property however at present the following problem: [i]I provide a AJAX Request. the side is loaded, the parameters all conveyed and back receives I a complete HTML side. Now I would like to have only certain elements however from this side, like DIV, SPAN etc. How can I make with the AJAX Request return in such a way best, which I can select these elements thereby? Simply it would be unfortunately not functioned over the function $ (element), it even if I indicate the HTML Request as secondly parameter.[/i] Excused, for my bad English. ;-) Translatertool. There is unfortunately too many words, in order to describe my problem. ^^
I'm trying to implement a minimal navigation bar using jQuery's toggleClass() function but can't seem to get it working.
It's the .img_selector div at the bottom of the page:[url]
I want to toggle the 'active' class for each <a> when it's selected, to indicate which image is showing, so after calling jQuery, in the <head> I've got:
Then the links, which also include the showPic function:
I am not terribly familiar with Javascript but i am looking forward to learning, and currently the problem I am facing is this:I have an a file being included to an .shtml document, that serves as my navigation, the code is like this:
I have a php page which returns a table representing a query sent to a MySQL database. So far it has worked in every case except now that I'm trying to use it to call a stored procedure, in which case the readystate is staying at 1 and never completing.
I have logged the results of the php file both in an error log and looked at the response from the request using firebug, both of which show a correct result.
Why isn't this returning properly?
Here are the relevant javascript functions:
Code: function customizeType() { $("custom-header").innerHTML = ""; $("custom-top").innerHTML = "";
[Code]....
After the page loads, the error log shows correct results for all queries.
<div> </div><div>I did some navigation menu and sub menu using jquery ,</div><div> </div><div>like ;</div><div> </div><div>Menu1 </div><div> Sub menu1(some.php)</div><div> Sub menu2(some1.php)</div><div>
The following code is working fine in firefox n not working in IE8... I get the Object Expected Error when the code hits the if(GBrowserIsCompatible())..... line in the javascript code. Clear cache and browser history does not work. Does anyone have a resolution for this?
Is there a way in Javascript, or perhaps in HTML, to force a browser to re-render an image on an HTML page after a round-trip between the client and the server ?
In my particular case, the image is changing on the server although the URL for it remains the same, but the browser is still displaying the old image from its cache rather than the new image from its URL location.
I want to use jquery to detect what type of browser you are using and display a link to a .wmv file if you are on IE or display a link to a .mp4 file if you are any other type of browser.I have this script declaration in my <head> section.
On my site i use a lot of features that are unsupported by older browsers, and right now it looks pretty stupid when the features are only partially shown. So i was wondering if there's a way of making the browser look to different css files depending on which browser and version it is. For example, css3 gradient backgrounds are supported in firefox 3.6 or something, but not in 3.0. All the hacks out there is to 3.*, so it changes for the allready working 3.6 too if i hack it. I want to controll it so that i have a specific css file for the none-supporting version and lower and one for the supporting and above. I looked at a bad browser plugin (because it has some of the basic features im looking for)
is it possible to scroll / jump to say, 10px above a div? i tried adding padding, but it doesn't work.also, when I use <a href="#xxxx">, is it possible to prevent the browser from adding #xxxx to the url in the browser?
I need a script that will redirect to a specific page is the browser is safari version 4. if the browser is NOT safari 4 I want the browser to stay on the current page.
I have to open a new window when user closes the browser window. But the problem is that on browser close unload event calls and the same event is called with we refresh the page. So it is opening the popup window on both window close and window refresh.
$.browser is being deprecated however I still need to know what browser is hitting the page. In some cases I need to modify a layout or position an element by some pixels. The number of pixels is different for different browsers.How can I detect the browser using jQuery without using $.browser?
I was wondering how to implement the + and - signs that Sitepoint employs in their navbar to collapse and expand link text. My teacher showed me a cursory example but he was in a rush so I didn't have time to copy down the code = /
From what I understand, you need 2 divs, and if its clicked the first time, make it inline, if it's clicked again, make its display none. I'm just not sure how to throw that into code! From what he showed me, it's a few lines long so not too troublesome, so I hope someone can be of assistance.