Good Morning,
I am working on a page that uses ajax to display a list of products after a search. The content is displayed in 10 divs created in the DOM. If the search returns more than 10 results. I put the next 10 products into the same DIVS. In other words the user never leaves the page. The problem arises when they use the back button to look at the previous 10 products it takes them clean off the page. In a perfect world...
User Profile
Collapse
-
Javascript/Ajax Disable or manage the browser back button
-
I can't tell what exactly what you are trying to do here, but this is how I'd do it.
Code:window.frames['frame_name'].document.getElementById("the_id").src = parent.document.getElementById("the_image_id").src;
Code:var my_iframe = window.frames['frame_name']; var the_src = parent.document.getElementById("image_id").src;
-
First of all I want to thank Harpreet for taking the time to check up on this for me. After reading the replies I was able to do some more research into this. I checked out google maps api and found out that the distanceFrom() function does not use google's geocoder. So I plan on using a loop to loop through all the Geopts and a filter to exclude the ones that are obviously too far and then use google's distanceFrom() to get the exact matches....Leave a comment:
-
Google Maps X mile radius form a point
Good morning,
I didn't see a forum for Google Maps so I figured this would be the best place to post. My question has more to do with geocoding than JS, but I will be using JS to perform the search and the calculations. First of all I want to convert miles to lat lng. Say my Lat is 43.5643 what would be the Lat's 5 miles in either direction.
Here's what I'm working on. I have an XML file with all the lat's and lng's (Geopts)... -
Again thank you Very much. I assigned the event handlers to the DOM elements (the parent and window) like this
Code:openNewWindow.parents[this_parent].onmousemove = function (event) { if (!event) {event = window.event;} openNewWindow.moveMe(event); }
Leave a comment:
-
Well I believe I was a little too quick to speak. It works very well on Firefox. I use Firefox for my main (default) browser. I have an issue with Microsoft (I won't go into it here). Anyway for compatibility's sake I tried the window object with IE. And the same problem arose. In firefox the event passes to the function perfectly, but in IE the event doesn't pass at all. In a perfect world everyone would have Firefox. Anyway your insight...Leave a comment:
-
-
Sorry about the Code tags thing Y'all. I didn't read the sticky, my bad. But could someone please give me the lowdown on passing the value of a php Variable to a javascript function. (or if it is even possible). Thank you!...Leave a comment:
-
Passing the event to the handling function with an onmousemove event
I've created a window management object for my ajax pages. It opens windows and attaches them to the DOM element specified and then keeps track of them and removes them from DOM when the user closes them. I'm trying to add drag and drop. I am able to assign the mouse event handlers to them, but unable to send the event to the function.
Code:// This is assigned to the parent of the window that has been selected to move
-
Returning a php variable to Javascript.
Good day All,
I am trying, with no success obviously, to return the value in $myPhpVar to a javascript function. I've tried the following and many other combinations using echo and printf.
Code:print"<script type='text/javascript'>parent.myFunction.call(".$myPhpVar.");</script>"; print"<script type='text/javascript'>parent.myFunction.call($myPhpVar);</script>
-
I'd like to thank hsriat for at least responding to this. I know the question may have sounded stupid to those of you who are seasoned php programmers, but I know very little php. I'm a fairly decent Javascript programmer, but anyway I have solved my own problem. After setting up an apache and php on my computer I am able to experiment with php without having to constantly download and upload to my rented serverspace. So this will close this...Leave a comment:
-
I am avoiding AJAX because when I use an xmlHttp request to post to my php using the POST method my php only recieves about 900 bytes of the file. The file is an advertiser list and is now 9 Kb's, but will be much larger when the site comes online. In my php I'm using the super global $_REQUEST $fileName =$_REQUEST['fileName'], $fileString=$_R EQUEST['contents']. So to post the file I use an hidden Iframe and an old fasioned html hidden input....Leave a comment:
-
Returning Javascript after file upload to php
Well this should be a fiarly simple question to those of you who are experts at php. I have some Javascript on the Client side that uploads a file to a php on my server through a hidden Iframe. I want to return some Javascript to the Iframe.[ <script type='text/javascript'>par ent.myObject.my ResponseVar = $response;paren t.myObject.dclo se();</script>]. $response is a php string var that contains the file upload stats (file name Kbs...
No activity results to display
Show More
Leave a comment: