Unable to scroll down an ajax dropdown box in IE. as doing so causes the dropdown box to hide.
I have been told that I need to have a different DOCTYPE but using a 'scrict' doctype causes the menu to scroll downwards with each item on its own line and not across the top of the page.
This is the working folder I have created with just the bar bones of the page that are affected. code...
Can anyone suggest how I can get this to work on most if not all browsers.
oh, i have previously been told that I should use Jquery for this and the other functions on the page but I tried this at the first stages of setting the page up and it failed to work correctly.
I'm pulling data from a database using a RESTlet server, and using Flot to produce a graph.
My problem is that whenever I make the following AJAX call, I get an "Access to restricted URI denied" error on Firefox. On Internet Explorer I have other problems, but I can tell by my server logs that at least the AJAX call happens, which is more than I can say for Firefox. code...
The url is correct, and the server is hosted on this machine, but Firefox thinks it's trying access another domain. The html file containing this code is located on my hard drive.
Dynamically loaded content (via JQuery's get method, for instance) seems unable to connect to a stylesheet that resides on the main page. I understand this is due to the fact that the dynamic content is not part of the DOM.
When i modified it to use jQuery i am not able to call javascript function. How to pass these two parameters so that my doABC(param1, param2) function is called from jQuery?
i'm having trouble with some of my codes.i've been trying to put variables in function calls parameters, but it just does not work. for example, if I try to do sth like this:
Code: //a function that creates page numbers based on number of pictures that can be shown on the page function MenuBar() { pageSpan = [document.createElement('span')];[code]....
when i try to run it, it won't work.what i'm trying to do is that every time the loop runs, the "onclick" event of the created span will be the value of the loops "x" variable -1, and the value of x variable.meaning, for every new span, the parameters in the showImage() function are different.
Code: pageSpan[1].onclick = function () { showImages(0, 1) }; pageSpan[2].onclick = function () { showImages(1, 2) }; pageSpan[3].onclick = function () { showImages(2, 3) }; pageSpan[4].onclick = function () { showImages(3, 4) }; pageSpan[5].onclick = function () { showImages(4, 5) };
I know that each of the objects in the array have data because I tried to run each one of the lines above separately without calling the other two and it worked fine.
I want to add 5 to the variable 'paramdatastart' each time the #btn is clicked. So when I click it first time the 'paramdatastart' will be 5 and next time it will be 10 andso onHow do I do that?
I'd like to ask how can i ask for a function inside a for loop , if i remove the loop the code works fine but i need it for 10 rows .here is the code...
I am new to Ajax. I wrote my first script with the help of Google Please let me know the mistake. I have three menu and it is supposed to load three pages. I used firebug but unable to see any error. code...
I'm trying to set up a login formular with PHP and JavaScript/jQuery. Currently it sends an alert box, if some information are wrong. If correct, it refreshes the page, and everyone's happy.
However, I noticed upon the first visit, I cannot log in. Lets say I go to www.mysite.com and try to login, it displays a blank alert box, when it's suppose to display the username, that I supplied, and is wrong... however, it's blank.
BUT! If I go to another page and login with false informations, an alert box with the wrong username pops up - if I login with correct informations, it works.
How come it won't work on first visit? What am I doing wrong here? :confused: Pressing F5 won't work either - I have to manually switch to another page for it to work.
I am trying to initialize form elements with the values retrieved from an excel file. I am able to read from excel, but unable to initialize the form elements to values retrieved. No idea where I am going wrong.. code...
I have a issue - I'm hiding and showing div's when the radio is clicked but currently you have to click twice for the div to show - what am i doing wrong?[code]...
I've managed to output the text of my two arrays to a specific div (in this case the div's id is ''number') - BUT I'm only seeing the last data from each array (it's a train number and a train name) so instead of getting the entire list from 800 to 870 and the associated names I'm just getting the last pairing which in his case is 870 Zulu.
<script type="text/javascript">
this is my code. Can anyone see where I'm going wrong? code...
I'm very new to jQuery and registered a new account on the website yesterday. I can log in using my account details OK, but when I try to use the Plugins section of the site I get :- Access denied You are not authorized to access this page.
If I try to search for a pluging, I get
Validation error, please try again. If this error persists, please contact the site administrator.
I can't find a FAQ section in the forums, or any link on the site to contact the website admins, so I'm hoping someone here may be able to help, or at least point me in the direction of someone who can.
Is it possible to use AJAX to call a PHP function. I know you can request a PHP page but I would like to call a PHP function and display the return using AJAX .
I was wondering if it was possible to call a specific PHP function using AJAX instead of calling a whole page. An example:
function MakeRequest() { var xmlHttp = getXMLHTTP(); xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState == 4
[Code]...
I already have a PHP function (in a class) that retrieves the provinces/states from the database based on the country. I was wondering if it was possible to call this function instead of having to make a new file (in this case FindProvinces.php) that calls the function.