|
Hi guys,
I am currently writing the payment part of a webshop. There are three ways of payment, and the customer szelects one of these three by means of a selection in the form. The actual submit button start a javascript function that checks the payment method and sets the form's target to a intermediate page for each of the three payment methods. The code I use is very simple:
if (document.orderform.method[0].checked == true)
{
document.orderform.target = '_self';
document.orderform.submit();
}
else if (document.orderform.method[1].checked == true)
{
document.orderform.target = '_self';
document.orderform.action = 'ideal.php';
document.orderform.submit();
}
else if (document.orderform.method[2].checked == true)
{
document.orderform.target = '_blank';
document.orderform.action = 'paypal.php';
document.orderform.submit();
}
else
alert ("please select a payment method");
This works fine in firefox, however IE7 says "object doesn't support this property or method" This occurs at "...action='ideal.php';" When I give the action a value (document.orderform.action.value='ideal.php') IE does not complain, but does not change the form's action either (also firefox does not change the action anymore)
Does anyone have a suggestion on how to change the form's action in all browsers?
Any suggestions are greatly appreciated.
Thanks in advance,
William
|
|
|
|
|
run this through jslint,
tips:
always use triple = for comparison (===)
opening brackets must come on the same line as the conditional statement opening them, Javascript does strange things in certain situations if it's on the next line.
|
|
|
|
|
Code like this:
string connectstring = @"data source=abc;initial catalog=XXX;integrated security=sspi";
sqlConnection connection = new SqlConnection(connectstring);
connection.Open();
when I use these code to connect the same db(not in webservice method), it works, but I run it in my webservice, it throw a exception that error ocurred in get_serverversion.
Does any body here meet a same question? 
|
|
|
|
|
What is the best free file zip application for classic asp. 
|
|
|
|
|
|
AoA
Thanks in advance for help. Please help me if any one have some info about it.
I have made a solution with three projects a web services project , a client windows application project and a class library project.
I made a class in class library. this class library is added as reference in the client and web services project.
Now from client application, when i call some web methods of the web service they work fine.
I have a web method with an object type attribute. that method just cast it to string using ToString() and return that string. Now i made an object of a class in class library.
When i call that web method and pass this object. An InvalidOperationException generated, with error message There was an error generating the XML document.
I can not solve this, i search it on web but no solution found. I can not know how to upload the code here.
Please help me if any one can.
Will wait for reply.
|
|
|
|
|
Alright I have been asked to create a rather particular website. to meen it lookes like I need to create frames. Seemless frames. The issue is I have no real clue as to how to go about doing this. The top and sides of the website need to always remain as they are while the middle frame, the content, needs to actually be a completely different website. I am doing work for sub contractors of this business
http://www.kenthomes.com/
This sub business is making a website (through me) and the main business (kent homes) wants all the contact to be from their site. Below is a link to an image visually depicting what needs to be created. the green section needs to be the ACTUAL kent homes website and the blue and red sections need to be the sub vendors header image and sides. "Frames" Can anybody tell me how I can overcome this issue?
http://i98.photobucket.com/albums/l280/MH_Strife/frames.gif
|
|
|
|
|
Here, the basics of html frame[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
hmm. Thank you very much. though even with this I still am not sure how I would make a layout like the one described in my description. From what I used of frames a few years ago I also thought you could drag the window to whatever size the user pleased?
|
|
|
|
|
I really need to get this website done this weekend. Is there anybody that can help?
|
|
|
|
|
You can try this:
<html>
<head>
<title></title>
</head>
<frameset cols="200,*,200" border="0" frameSpacing="0" frameBorder="0">
<frame name="Frame1" scrolling="no" noresize src="MyPage1.html" frameborder="0">
<frameset rows="150,*">
<frame name="Frame2" scrolling="no" noresize src="MyPage2.html" frameborder="0">
<frame name="Frame4" src="MyPage4.html" frameborder="0">
</frameset>
<frame name="Frame3" scrolling="no" noresize src="MyPage3.html" frameborder="0">
</frameset>
</html>
|
|
|
|
|
I tried the frame thing but dreamweaver freaked out on me saying I dont have 4 certain pages. The ones linked in the frameset. I read some stuff on w3schools and tried something involving and it seems to be working alright. Thank you for your solution though. If I have more questions, which I probably will as this is all new to me, I will contact you. Thanks again mrMercury!
|
|
|
|
|
Hai all,
I am just started studying Spring Framework,i 'm very much impressed with its features.Now i'm looking for step by step procedure for developing my first Spring login page in MyEclipse.
Anyone know it please help me..
Anyway thanks in advance
|
|
|
|
|
sanuji wrote: Spring
yea, thanks for the reminder, spring started last week. Yippie, winter is over
seriously, no freaking clue, but google returned this[^], don't know if it is any useful or helpful.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hello All,
Just wanting to ask about class methods in UML modelling
How do you determine where the methods reside in a class, with reference to the Business Logic Layer.
I am very confused about this.
Any help would be great. Thanks
|
|
|
|
|
wrong forum, try design and architecture forum[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
I have set up an HTML form on my webpage for users to send messages, so that we don't get lots of junk mail.
The problem is the messages that are sent (via the PHP 'mail' function) are picked up as junk
because there is no "sender ID".
Is there a way around this so the messages are seen as valid?
Cheers,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
Click here to view my blog
|
|
|
|
|
ini_set ("sendmail_from", "yourfakeemail@yourDomain.com");
Then make sure the sender is in your junk filter's allow list.
Make sure all images are hyperlinks to images online somewhere and not attachments. For a better junk rating without using the allow list.
|
|
|
|
|
Also ensure all the correct headers are included
ie:
From
Reply-To
Content-Type
mime-version
eg:
$headers = "From: Sender<sender@yourdomain.com>\r\nReply-To: sender@yourdomain.com";
//add boundary string and mime type specification
$headers .= "\r\nContent-Type: text/html;"."MIME-Version: 1.0";
|
|
|
|
|
I have created a stored procedure in SQL Server 2005. I am trying to call that procedure from ASP (Classic asp) page. The stored procedure returns a recordset of this query.
SELECT Count(worklist_P.wrkID) AS Total, Sum(CASE WHEN complited = 'True' then 1 else 0 end) AS [comp],
Sum(Case when readed = 'False' then 1 else 0 end) AS new,
Sum(Case When complited = 'False' then 1 else 0 end) AS pend
FROM (employee_Master INNER JOIN worklist_C ON employee_Master.empID = worklist_C.assignedWhom)
INNER JOIN worklist_P ON worklist_C.wrkID = worklist_P.wrkID WHERE (((worklist_C.assignedWhom)=@empId));
I am calling that procedure in following code:
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = con
cmd.CommandText = "wrksCnt"
cmd.CommandText = "{call wrksCnt(?)}"
cmd.Parameters.Append cmd.CreateParameter("@empId", 3, 1)
cmd.Parameters("@empId") = 2
set rsWork = cmd.Execute()
But it is not returning anything. I have tried executing above stored procedure in SQL Server 2005. It is running well. Giving proper output.
I have also tried this code to
strSql = "exec wrksCnt '" & Session("empID") & "'"
set rsWork = con.Execute(strSql)
This code is also not returning any value. Please guide how to call stored procedure properly in classic asp page.
Kiran Sajanikar
Software Engineer
Pune, India
|
|
|
|
|
you asked the same question, 3 posts down, I gave you a link, then you decided to delete your message and post it again. Sorry, that will not help.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I have gone through your reply. I found that I have alredy refferd that link before starting this thread. I have imergency for the solution. Thats why I did so. I extrimly sorry for that.
But now could you please go through my post again and help me out detecting my bug to solve my problem.
Kiran Sajanikar
Software Engineer
Pune, India
|
|
|
|
|
I have tried above code with different query. The recordset is returning -1 recordcount.
I have tested both queries in Sql Sever 2005, They are running well and giving proper output.
Then why the recordset is returning me -1 recordcount.
New query is as below :
strSql = "SELECT TOP (50) MAX(feedback.replyID) AS replyID, feedback.wrkID, MAX(feedback.feedback) AS feedback, MAX(employee_Master.empName) AS empName, " & _
"MAX(feedback.replydate) AS replydate, feedback.empID, worklist_C.complited " & _
"FROM employee_Master INNER JOIN " & _
"worklist_P INNER JOIN " & _
"feedback ON worklist_P.wrkID = feedback.wrkID ON employee_Master.empID = feedback.empID INNER JOIN " & _
"worklist_C ON worklist_P.wrkID = worklist_C.wrkID AND employee_Master.empID = worklist_C.assignedWhom " & _
"WHERE (worklist_P.assigedby = 2) " & _
"GROUP BY feedback.wrkID, feedback.empID, worklist_C.complited " & _
"HAVING (feedback.empID <> " & Session("empID") & ") " & _
"ORDER BY replyID DESC, replydate DESC"
set rsReply = Server.CreateObject("ADODB.Recordset")
rsReply.Open strSql, con, 1, 3, 1
Kiran Sajanikar
Software Engineer
Pune, India
modified on Thursday, April 2, 2009 12:45 AM
|
|
|
|
|
I have tried simple stored procedures to return recordset
like : Select * From
It is running good, giving proper out put.
But If I am making it bit complicated then recordset is returning -1 recordcount
e.g. : Select Count(bId) from bTable
This stored procedure is running well in SQL Server 2005, but if I am caling them in ASP pages it is returning me -1 recordcount.
Please Help me
Kiran Sajanikar
modified on Thursday, April 2, 2009 12:46 AM
|
|
|
|
|
I got stuck with above issue.
I am not getting any answer to it.
Please help me.
Kiran Sajanikar
|
|
|
|