×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

View JavaScript Function OnClick

View JavaScript Function OnClick

View JavaScript Function OnClick

(OP)
Our seat maps are currently designed to take users to a screen where they can select a seat they want and from there, purchase a ticket. Using the same page, I added a query string that is set for users who want to view the seat maps only and not actually purchase a ticket. Here is the query string I created, you will notice the features I want to disable when they are in "ViewOnly Mode":

CODE --> c#

Mode = Request.QueryString["Mode"];
if (Mode == "ViewOnly")
SelectPerformanceBlock.Visible = false;
QueueBlock.Visible = false;
MaximumTixBlock.Visible = false;
LegendHeaderBlock.Visible = false; 

I want to include a function after users selected their zone, send them to a page that shows the view from their selected seat. This "view from seat" feature is currently enabled on the page but can only be accessed if users manually click the link. The view from seat feature uses an OnClick function and is written in java-script.

My question is how can I enable the "view from seat" function to automatically be displayed when users are in ViewOnly Mode? I've attached my working files. Thank u in advance.

RE: View JavaScript Function OnClick

You'll need to craft a similar function and call it from your on load.
This uses jQuery, but you could do something similar with .getElementByID.

function forceClientClick() {
var Link = '#myID_' + CurrentID.toString();
$(Link).click();
}

Lodlaiden

You've got questions and source code. We want both!
There's a whole lot of Irish in that one.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close