- Screen name: dewamonyet80
dewamonyet80's Profile
3 Posts
6 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
I have this little script that i run under "HEAD" tag, working with jquery mobile. It resizes images according to screen width. It works fine, but it only works after a refresh on that page every time. Is there anyway i can force to refresh every time you enter a page? Or is there a better method of doing this?
The script goes like this:
<script>
$( document ).ready( function()
{
$width = $( '#content' ).width();
$( '#content img' ).css(
{
'max-width': $width, 'height': 'auto'
} );
} );
</script>
Thanks
Hi,
i have this problem that may require regex manipulation. Basically all "img src" in my website points to localhost (i.e. img src="http://localhost/folder/img.png" ). When viewed under source, the "localhost" doesn't show up, but if clicked to get image address, it'll show "localhost". What i need is then to add the full path to that img src (i.e. img src="http://mywebsite.com/folder/img.png" ). The reason for all this trouble is because i don't have access to the site itself and i'm only creating a reader for it on mobile using rss.
How do i go about doing this?
Any help would be greatly appreciated.
Thanks a lot
- Hi,I'm very new to jquery/html/php. I just have one question that i'm troubled with. I'm creating a rss reader for mobile.The setup:-Multiple category pages ( for news categories )-ONE details page.The idea is for these category pages to display headlines/articles, and when clicked, they all go to this one page "page details.html"Execution:I was able to obtain the id of the article when an article is clicked$( document ).ready( function(){$( 'a' ).click( function(){alert( $( this ).attr( 'id' ) ); // where 'id' is the article id});});But the question is, how do i read this id from another page (i.e. page details.html).That's all i need to know really. If anyone can shed some light on this, that'd be greatly appreciated.Thanks all.
- «Prev
- Next »
Moderate user : dewamonyet80
© 2013 jQuery Foundation
Sponsored by and others.

