Is there a way to do transition to a page that is loaded through rel="external" + image question?

Is there a way to do transition to a page that is loaded through rel="external" + image question?

Hi,

I have a page which contains a lot of  <div data-role="page" id="home">-pages
and each id is a unique identifier that I am using in another list to link to using page.html#unique_id. To make that work I use rel="external" so the page is reloaded.

Unfortunately that means I loose the transition from the previous page. Is there any way to do a transition when using rel="external"? I'm still on the local site but since I cannot access an id further down in the page without rel=external I'm a bit screwed.

I have been thinking of adding the pages to the same page as the list. however - each of those pages contains a image + info. Another Q is - even though just one part of the page is visible, does all the images on the page in other "<div data-role="page" id="home">"-divs get loaded in the background? See this example below:

  1. <div data-role="page" data-theme="b" id="byyear">
  2.   <div data-role="header" >
  3.    <h1>Nobel Laureates By Year</h1>
  4.   </div>
  5.   <!-- /header -->
  6.   <div data-role="content" >
  7.      <div style="padding-top:10px;"><ul data-role="listview" data-theme="d" data-inset="true">
  8.     <li><a href="#id1" >Page 1</a></li>
  9.     <li><a href="#id2" >Page 2</a></li>
  10.     <li><a href="#id3" >Page 3</a></li>
  11.     </ul></div>
  12.   </div>
  13.   <!-- /content -->
  14.   <div data-role="footer">
  15.     <h4>Page Footer</h4>
  16.   </div>
  17.   <!-- /footer --> 
  18. </div>
  19. <!-- /page -->

  20. <div data-role="page" data-theme="b" id="id1">
  21.   <div data-role="header" >
  22.    <h1>Nobel Laureates By Year</h1>
  23.   </div>
  24.   <!-- /header -->
  25.   <div data-role="content" >
  26. <img src="/link_to_image">
  27. <h2>Title</h2>
  28. <p>Some text</p>    
  29.   </div>
  30.   <!-- /content -->
  31.   <div data-role="footer">
  32.     <h4>Page Footer</h4>
  33.   </div>
  34.   <!-- /footer --> 
  35. </div>
  36. <!-- /page -->

  37. <div data-role="page" data-theme="b" id="id2">
  38.   <div data-role="header" >
  39.    <h1>Nobel Laureates By Year</h1>
  40.   </div>
  41.   <!-- /header -->
  42.   <div data-role="content" >
  43. <img src="/link_to_image">
  44. <h2>Title</h2>
  45. <p>Some text</p>   
  46.   </div>
  47.   <!-- /content -->
  48.   <div data-role="footer">
  49.     <h4>Page Footer</h4>
  50.   </div>
  51.   <!-- /footer --> 
  52. </div>
  53. <!-- /page -->

  54. <div data-role="page" data-theme="b" id="id3">
  55.   <div data-role="header" >
  56.    <h1>Nobel Laureates By Year</h1>
  57.   </div>
  58.   <!-- /header -->
  59.   <div data-role="content" >
  60. <img src="/link_to_image">
  61. <h2>Title</h2>
  62. <p>Some text</p>    
  63.   </div>
  64.   <!-- /content -->
  65.   <div data-role="footer">
  66.     <h4>Page Footer</h4>
  67.   </div>
  68.   <!-- /footer --> 
  69. </div>
  70. <!-- /page -->
Does all the images get downloaded when the page is accessed or just the image of the page currently being displayed? Any of the lists we have links to 50-100 people and while I could just put them in the same page (it's not that much info about each of them) having 50-100 images á 16 KB getting downloaded just because you look at one person seems not good. 

If they do, would it be possible to do a javascript solution where the image at load time is a low-res profile-pic (same for everyone) and when you click on a person in the list it will use javascript to put the correct url into the scr for the image and load it? 

I really am new to JQuery etc. so while I am trying to read up and learn I would appreciate some help is someone has an answer to these questions.

Thanks in advance.

Björn






    • Topic Participants

    • admin