Involves scrollTo and page load
http://shaunmackey.com/articles/mobi...-mobilesafari/
Eric
Announcement
Collapse
No announcement yet.
Search Result
Collapse
500 results in 3.1317 seconds.
Keywords
Members
Tags
-
Not sure what the last post was trying to say other than pimp a post.
Hence why I said you had to look at history managers like YUI History Manager or Really Simple History. They listen for hash change and give you events saying that things happened and you can adjust...
Leave a comment:
-
You can not change the url without refreshing the page. You can change the hash.
window.location.hash = "newPage"
Look into YUI History Manager or other scripts like that.
Eric
Leave a comment:
-
Never use onclick="showImage() on the element, that is very bad practice, especially when you are using a library that makes it as easy as pie to add events the correct way.
Code:$("#ElementId").click( function(){ $('#imgSwitch').show(); } );
Leave a comment:
-
You are using the same global variable so you keep writing over the previous request.
Use an library to make the Ajax calls and you will not have the issues.
Eric
Leave a comment:
-
JavaScript is not going to help to make your site look the same in every browser. Coding CSS and tweaking it for the browsers is what will make it look the same.
Eric
Leave a comment:
-
What you are doing is not causing massive strain on the server. You are not talking about a page that is dealing with tons of backend resources.
Ajax does not require changes on the server.
BUT in your case Ajax is not needed to update images.
To update...
Leave a comment:
-
-
-
1 user generates 1 request every second. Multiply that by 10 users that is 10 requests. Your server will get pounded as your load increases. Hope you have the bandwidth.
Leave a comment:
-
Leave a comment:
-
I would not use document.write. Put an element on the page and set its innerHTML with the content.
Have you added debug statements to see where it is failing?
Eric
Leave a comment:
-
You can request an image from the server and see it returns, if not than you know you do not have access to the net
Code:var img = document.createElement("img"); img.onload = function(){ alert('has connection'); }; img.onerror = function(){ alert('no connection'); };
Leave a comment:
Leave a comment: