Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Help with iui.showPageById()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Katrina  
View profile  
 More options Sep 24 2012, 8:10 pm
From: Katrina <Katrina.McKe...@socraticarts.com>
Date: Mon, 24 Sep 2012 17:10:47 -0700 (PDT)
Local: Mon, Sep 24 2012 8:10 pm
Subject: Help with iui.showPageById()

Hi,
By searching the archives I did discover showPageById but it doesn't seem
to be working for me.

HTML*********************************************************************** **

<div id="home" class="panel" selected="true" title="TEST">
  <h2>TEST - Get Cash!</h2>  
  <ul>
    <li><a href="#login">Login</a></li>
    <li><a href="#register">Register</a></li>
  </ul>

</div>  

<div id="login" class="panel">
    <h2>Login into TEST</h2>
        <fieldset>
            <div class="row">
                <label>Email</label><input type="text" name="emailaddress"
value=""/>
            </div>
            <div class="row">
                <label>Password</label><input type="password"
name="password" value=""/>
            </div>
           <a class="btn-blue bt-big" type="button" href="#"
onclick="loginUser();return false;">Login</a>
        </fieldset>
</div>  

 <div id="main" class="panel"  title="TEST">
   <h2>TEST - Get Cash!</h2>
         <fieldset>
            <div class="row">
                <label>Hi user, </label>
            </div>
            <div class="row">
                <label>I have a...</label>
            </div>
            <a class="btn-blue bt-big" type="button"
href="#next">Submit</a>        
        </fieldset>
</div>  

JavaScript
**************************************************************************
function loginUser(){
alert("test")
iui.showPageById("main");

}

The alert appears but the screen goes back to the "home" panel.

Thank you for you help.

Katrina


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remi Grumeau   
View profile  
 More options Sep 25 2012, 1:22 am
From: Remi Grumeau  <remi.grum...@gmail.com>
Date: Tue, 25 Sep 2012 07:16:45 +0200
Local: Tues, Sep 25 2012 1:16 am
Subject: Re: Help with iui.showPageById()

The problem is not iui.showPageById, which works great even in your case.
What's goofy here is href="#", who asks iUI to go nowhere. Rather than staying at the same spot, it goes on default screen. Which is #home for you. (agree it sounds like a bug to me too)

Solution 1
Replace href="#" by href="javascript:;"

Solution 2
Remove. onclick & replace href="#" by href="javascript:loginUser();"

Remi

On 25 sept. 2012, at 02:10 AM, Katrina <Katrina.McKe...@socraticarts.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Katrina  
View profile  
 More options Sep 25 2012, 11:25 am
From: Katrina <Katrina.McKe...@socraticarts.com>
Date: Tue, 25 Sep 2012 08:25:31 -0700 (PDT)
Local: Tues, Sep 25 2012 11:25 am
Subject: Re: Help with iui.showPageById()

Thank you! Yes, that fixed it. Thank you so much for the quick response.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic