Questions tagged [page-init]

a jQuery Mobile event triggered on the page being initialized, after initialize occurs

a jQuery Mobile event triggered on the page being initialized, after initialize occurs. Pageinit event is executed every time page is about be loaded and shown for the first time. It will not trigger again unless page is manually refreshed or ajax page loading is turned off.

58 questions
16
votes
2 answers

page load() or page init()

In asp.net, when do you bind your gridviews? at Page Load() or Page Init()....why?
Saif Khan
  • 18,402
  • 29
  • 102
  • 147
10
votes
1 answer

jQuery Mobile - binding to pageinit event

I am trying to understand the following jQuery Mobile example. $( '#aboutPage' ).live( 'pageinit',function(event){ alert( 'This page was just enhanced by jQuery Mobile!' ); }); What is #aboutPage in this context? What is the object pageinit is…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
7
votes
5 answers

How to use pageinit correctly?

I have a single file for each page and i am trying to implement the pageinit event handler on every page (I think what belongs strictly to one page, should be declared there) as shown below:
Dennis
  • 2,132
  • 3
  • 21
  • 28
6
votes
4 answers

Document pageinit fires more than once on iOS (jQueryMobile)

I've got a Phonegap & jQuery Mobile app that works nicely on Android and web. On iOS I am getting unexpected results, which seem to be caused by the fact that the document.pageinit event to which I bind the handler for most of the app's processes is…
Wytze
  • 7,844
  • 8
  • 49
  • 62
5
votes
3 answers

Using 2 databases for Session information in ASP.NET

This post was originally trying to find the problem, which I thought was a web.config issue. I also thought it was something in the code behind of my master page. All the text up here is part of the process of finding out the problem, scroll to the…
Jamie
  • 1,579
  • 8
  • 34
  • 74
5
votes
1 answer

ASP.Net - Page_Load and Page_Init get called on each button click?

So I have absolutely no logic in my code. I have the two methods Page_Init & Page_Load Both methods get called every time I click the button. It makes sense for Page_load to get called. But why does Page_Init get called every time? protected void…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
4
votes
2 answers

jQuery mobile popup on pageinit

I want a popup to open as soon as the page loads but seem to be getting stuck with the spinning wheel. Here is a fiddler to demonstrate the problem any help would be appreciated. http://jsfiddle.net/Ohpyx/UGfXG/ The code I'm using…
user1886891
  • 43
  • 1
  • 3
3
votes
1 answer

How to not persist in ViewState stuff that doesn't need to be persisted in ViewState?

From Microsoft's page Understanding ASP.NET View State: in the instantiation stage of the page life cycle, the control hierarchy is created and those properties that are specified in the declarative syntax are assigned. Since these declarative…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
2
votes
4 answers

jQuery event wont' work after Ajax Loads in jQuery Mobile

I'm still new to Jquery Mobile and definitely it's a great framework. I hope someone could help me. I'm having issues with jquery events after ajax page loading. The following code will work on first page load, but after visiting other pages it…
ZoulRic
  • 83
  • 1
  • 6
2
votes
1 answer

Adding jQueryMobile elements after page load

Consider the following very simple code excerpt: (...)