473,408 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

If Statement to open a form

24
Hi
I am trying to write an if statement that will open one of 3 forms.

This dosne t seem to work. Can someone have a look over my code and let me know what you think?

if (sType == "Urgent" )
{
ABC_JSopenUrl( 'xxxx/sendmailurgent.htm?' + sGUIParameters, 400, 600, 'scrollbars=yes, resizable=yes' );
}
else
{
ABC_JSopenUrl( 'xxxxxx/sendmail.htm?' + sGUIParameters, 400, 600, 'scrollbars=yes, resizable=yes' );
}
}
if (sType == "Standard_Case" )

{
ABC_JSopenUrl( 'xxxxxx sendmailstandard.htm?' + sGUIParameters, 400, 600, 'scrollbars=yes, resizable=yes' );
}
Sep 19 '07 #1
4 1092
Can u describe the problem more precisely? Looking at the code it can be seen that there is an extra paranthesis after else statement.
Sep 19 '07 #2
AR123
24
This is set up so that 3 buttons appear on my page. Urgent, Callback and Standard. It works with the urgent and callback and have only just added the standard but cant get the standard one to pop up with the correct form it pops up with the callback form. Any ideas?
Sep 19 '07 #3
Expand|Select|Wrap|Line Numbers
  1. else if(sType == "Standard_Case" )
  2. {
  3. ABC_JSopenUrl( 'xxxxxx sendmailstandard.htm?' + sGUIParameters, 400, 600, 'scrollbars=yes, resizable=yes' );
  4. }
  5. else
  6. {
  7. ABC_JSopenUrl( 'xxxxxx/sendmail.htm?' + sGUIParameters, 400, 600, 'scrollbars=yes, resizable=yes' );
  8. }
  9.  
I think this will work
Sep 19 '07 #4
AR123
24
Yeh that works. Thanks. Appreciate the help.
Sep 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: dmiller23462 | last post by:
Hey guys.... I put an error-handling in my page and have it posted at the complete end of the code, see below(when people were putting in 's I was getting the delimiter errors). Great, I...
0
by: Suler Abou | last post by:
Hi, I'm having a problem with an SQL statement, I have a statement that goes like this: "INSERT INTO table VALUES('TransID','CID',etc...);" it basically adds new data to a table. When the...
5
by: DS | last post by:
How does one phrase this IIf statement in a Macro IIf(="2", Open Form 1, Open Form 2) If field="2" Then Open Form 1 Otherwise anything but "2" (Anything meaning any type of Chracter Number,...
1
by: Nothing | last post by:
I have a form that the user types in a last name to search for then clicks a search button. Based on the information I want to open the form using the SQL Where statement that will pattern match...
1
by: Lee Holsenbeck | last post by:
hi, i am trying to write records from an ASPX page to a access database, but get an error on my insert statement, but not on a select statement. please let me know if you can see what i'm doing...
1
by: Joe | last post by:
Hello All, I am trying to insert a record in the MS Access DB and for some reason I cannot get rid of error message, System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. ...
1
by: sudhaoncyberworld | last post by:
Hi all I am trying to submit the form and after form.submit line i am trying to open a url using window.open.... I found in some forum it is not possible to reach out the statement after the...
8
by: tnspc | last post by:
I'm trying to access a Request.Form variable and plug it into an SQL statement, so that the statement will select just the particular data I need. Here's the offending snippet of code: sql =...
2
by: chrisf01 | last post by:
I am trying to write to a text file and the database at the same time. I have a For statement that loops through all the repeated fields in my form and writes it to a text file. That part works 100%...
1
by: somnamblst | last post by:
I have a Flash form that uses ASP to write to Access db. I have an HTML form that uses ASP to upload files and email those files and sends copies to recipients based on the form fields. I would like...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.