i've got an html page which near the end of it has a particular image (a normal html <img src... one). is there any javascript way to stop browsers accessing that image from the server before it attempts to do so?
how to stop the browsers back button from working after a user has logged out. I tried the windows.history.forward(1); function but it either is not working for me, or I am not putting it int the right place.The logout button is on the menu.php page. The button calls the logout.php file which redirects the user to the index.php page after logout.
I am developing a website using HTML, CSS and JavaScript. Actually, I used Javascript a lot in that website and I am developing it in Internet Explorer Environment but I want to display it on the Firefox or Google Chrome but the problem is some of javascript codes do not work in these browsers. So what Should I do?
I think I need to define the javascript for the different browsers, so how can I do that?
How to make html consistently see js functions. Let's say I have two functions in my javascript code. I want to move between the functions using html links or image maps, e.g. I want to trigger a certain function when clicking on a certain part of an image.
The problem is that when I start the function via "javascript:function" and then I want to trigger another function in the same way, I get an error message saying the function is not defined.
I just started with jQuery and AJAX so I'm hoping that I'm just missing something obvious. I have a comment field and I have already finished all the functionality of allowing users to add comments to the page using an AJAX form.
The problem that I have is that the comment <div> itself has some rollover properties for edit/delete so that those links only appear when the mouse enters the comment div. For whatever reason, they only appear on comments that existed on the page load. Any comments that are added while on the page aren't accessible to jQuery until I reload the page. Is that normal behavior?
I am building a custom shirt design app which uses an Ajax form to allow a user to upload an image, and once it is uploaded it is automatically placed in the next empty <li> in their little gallery... once it is in the gallery they can click on it and insert it into their shirt design. It's all done with Ajax so they never leave the page.
Here's the code that inserts the image into the page once it is uploaded: (this works perfect)
The problem is that if I click on one of the first five, it works, the image gets inserted into the shirt design. But if I click on that last one, which now has the image I uploaded in it, it doesn't get inserted into the shirt design. Is there a reason why?
I have two Select Boxes on my web page, 2nd being populated based on selection of first select box. Now I am suppose to get the selected value of 2nd Select and put it in a link i.e. Code: <a href='abc.html?id=<2nd select box value>
I can get the selected value using Javascript with the following code: Code: 2ndid = form.2ndodf.options[form.2ndodf.options.selectedIndex].value; Where 2ndid is a global javascript variable. How I can use this variable into <a href> tag.
And it does indeed allow the user to select a file on his computer.
But when I access the value of the control I get an odd value. I do this, in javascript:
Code: var FileSelector = document.getElementById("FormsFileSelector"); var FileName = FileSelector.value; And the FileName that I get is "C:/fakepath/MyPicture.jpg"
The actual path is C:/MyDocuments/MyPictures/MyPicture.jpg". But instead it's coming up with "fakepath".
Very weird! How do I get it to return the actual full path to the file on the user's computer?
This image gallery is not working in all browsers. It seems to work in an older version of FF on both PC and Mac but not working in IE or newer versions of FF.I created this gallery using an Adobe Bridge Extension.
<script type="text/javascript"> function insertPreference() { var row = document.getElementById('voteTable').rows[0];[code]....
I can get the value for id and title. However, I can not get the radio button value.I will loop through the <tr> tag and access the <td> and pass it to AJAX module in (id + title + value) manner.Is there a way to do that?
I'm not having this issue with Mozilla Firefox, but it seems that the results of the code below are being cached in EI 8. When the browser makes another asynchronous call to the server with different results from the database, those results are not being displaying on the wepage. How do I fix this problem. As I mentioned above the code works fine in Mozilla Firefox. The page displays data in EI 8 with no errors five seconds after the page has loaded, but as the information in the database changes, I'm not seeing those changes reflected on the page in 5 second intervals.
function reload2(){ $.get( 'vcci.php', function($xml) { // Make the XML query-able with jQuery $xml = $($xml); var $iso2 = $xml.find('data').text(); //alert($iso2); $('#para').text($iso2); }, 'xml' );}
Here is a link of what I currently have for an image-fade slideshow so far. However if I can I'd like html5+css3 to handle the fade effects instead of depending as heavily on jquery and js. Using the browsers own fade rendering will lighten that load.Link to what I have currently:
http://sympa.me/CHRISTOPHER/index.html .Link to some somewhat working examples.
I'm not having this issue with Mozilla Firefox, but it seems that the results of the code below are being cached in EI 8. When the browser makes another asynchronous call to the server with different results from the database, those results are not being displaying on the wepage. How do I fix this problem. As I mentioned above the code works fine in Mozilla Firefox. The page displays data in EI 8 with no errors five seconds after the page has loaded, but as the information in the database changes, I'm not seeing those changes reflected on the page in 5 second intervals. I'm assuming this is a caching issue, if so how do I fix it.
I have a client request I need a little advise on with an image slider.Client says;"There will be 4 photos that roll over two times each then stop on the Home Page photo then opens a text box over the left of the image"The part I'm not sure how to do is how to set the slider to stop on the Home Page image after the 4 images go through the animation two times.
I found an answer to my earlier problem: [URL]. By using this code: [URL] Now I have another problem. I would like it when the mouse is over the image that it stops moving, magnifies by 10% and onclick it will bring up a page in a new tab. The problem I have now is that the images are behind the background. Here is the site, all the source code is viewable: [URL]. I also need to have the ducks stop from going below the ground.
I have a page HTML. In HTML have 1 button, when click into button that'll appear 1 window. In this window, it's show 1 image and after 5s it will change the other image. I can't do this.
I m trying to make a person stay on same page on cancel, but the confirm takes the user to the next page like they press ok. how can i stop it? code...
I'm having problems displaying images on a site. Basically I have a to change an image each time a button is pressed on a piece of hardware. This is the code to detect a button press
So when the button is pressed/unpressed it should display tstileo and tstilec What format should my HTML code be to display the image ? This is whats there at the moment
<span id="btn0">?</span></p>
When running all I get is text saying [OBJECT HTMLImageElement] This site is being hosted on a microchip, btn0 is a press button switch on the board. The idea is to use this as a remote monitoring system. It runs Javascript XML HTML and CSS. I have spent hours searching for a way to do this ( simple ? ) task but haven't got any further than this. :confused:
So I wanted to make an image preloader, I found a tutorial and followed as best I could (in all fairness it wasn't the best tutorial), but have got a little stuck.
I think all I need to do is enter the src of the images but I can't see where to put them and if I make an array or make a series of entries.
If anyone could give me a hand I'd really appreciate it as I'm a bit of a noob when it comes to javascript.
This is what I have so far.
Code JavaScript: function ImagePreloader(images, call-back) { // store the call-back