|
The game continuous
Damn, and i still don't know what or how he wants to do the thing he wants to do.
-- modified at 8:20 Thursday 11th May, 2006
The forum can't follow either check this image[^]
|
|
|
|
|
KrIstOfK wrote: Damn, and i still don't know what or how he wants to do the thing he wants to do.
My quess is he don't know what or how he wants to ask the thing he wants to ask.
|
|
|
|
|
What on earth has happened to this thread!??
|
|
|
|
|
Do you think we can make it take over the entire first page?
|
|
|
|
|
If you reply enough you can i guess ...
But the main question is "Does anybody already know what the question was?" cause I don't.
|
|
|
|
|
I think it was,
"How do i break the CP forums?"
|
|
|
|
|
I guess he found an answer to then ...
|
|
|
|
|
Hey I already asked this a few posts down! I do hope you guys aren't cross-posting!
|
|
|
|
|
I am now...
Poor joke disclaimer
|
|
|
|
|
Phil Uribe wrote: I do hope you guys aren't cross-posting!
Well, this is the original thread, even if this part of it is a bit confused...
If someone is cross-posting here it's you, who created another thread when there already existed one.
---
b { font-weight: normal; }
|
|
|
|
|
In VBScript there is a function CreateObject which takes a String, that allows you to call functions from a dll.
Is there a equivalent in javascript?
tnx!
Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>
|
|
|
|
|
Hello all,
I have created a search button that is saved in a .js file. In .NET my main page with the frames is just called WebForm1.aspx. In the .js script I can get the search results to open in a new window, however I want them to display in a frame called FrameMainDisplay. I tried the following code:
top.frames['FrameMainDisplay'].item.location.href = 'WebForm1.aspx';
When running I get 'error on page' in the lower left hand corner.
How do I correct this?
|
|
|
|
|
Hi,
Im trying to execute DOS command from Javascript in JSP. My code is:
var strCommand;
var strStyle = 1;
var strWait = true ;
var strArgs;
strCommand = "c:\\winnt\\system32\\cmd.exe";
strArgs = "test.bat";
var shell = WScript.CreateObject("WScript.Shell");
var rcode = shell.Run(strCommand + " " + strArgs, strStyle, strWait);
shell.Popup("Return code is " + rcode);
Nothing happens after var shell = WScript.CreateObject("WScript.Shell")if any Alert msg given. No error found.Pls help..WSH also installed
Ram
|
|
|
|
|
Hi friends,
I am developing a web application and in that i want count for number of
hits on the site.
pl's help me.
Thanks in advanceeeeee
Yuvaa
|
|
|
|
|
Maybe you can try to start something on your own by using the technology you want, if you're stuck we can help you out ...
If you want some code in javascript which is going to do this, you can google for it and find a dozen of counters.
|
|
|
|
|
Hi,
If you are using ASP or ASP.NET, write the following code in Session_Start evein in Global.asa or Global.asax
Application("Hits") = Application("Hits") + 1
Chinna Srihari
Tech Lead, Chinna Stihari
|
|
|
|
|
Hello all.
I am looking for a way of getting the number of days (inclusive) between 2 days EXCLUDING weekend (if the time spans a weekend).
For example:
Monday 6 March 2006 - Friday 10 Mar 2006 = 5 Days
Friday 10 Mar 2006 - Thursday 16 Mar 2006 = 5 Days (Excluding Sat and Sun).
Basically, number of working days between 2 dates.
PLZ could someone help
Cheers
Programm3r
|
|
|
|
|
|
Thanx Michael,
But it really wanted it in javascript, I know code is code (no matter the syntax), but I don't have time decoding the CSharp into Javascript. If there is another script that you are aware of plz let me know.
Many Thanx
Richard - Programm3r
|
|
|
|
|
how to get the IP address of a machine consuming a web service?
I am using C# for developing my web service.Looking for your kind attention..
Thank you..
saji
|
|
|
|
|
Hi,
I tried generating a xml file and as it has got some foreign letter in some of the names.i included the encoding type iso-8859-1 and successfully was able to view that xml file in an asp page.
Now i am trying to get that xml document in another asp page so that i can display those names in a list box.
But when i use this....
var strTxt =oXMLHTTP.ResponseText
to get the text into string and then load DOM with it....it is not able to store the encoding i used in the other asp page.
var i = xmlDOM.loadXML(strTxt)
I was told that responseText doesn't store the unicode format.Can someone tell me which other method is to be used to load unicode XML file into DOM.
Thanks.
Vani
|
|
|
|
|
Folks,
I have a web database app that uses an htm page as the user interface and calls an asp page to interact with my database. I've designed this so that the htm page calls the asp with a parameter that selects which function to run and I'm doing so using a switch statement as the first thing which gets executed when the asp page loads:
<br />
<script language=javascript runat=server><br />
var szMethod = Request.Querystring ("Method");<br />
<br />
switch (szMethod)<br />
{<br />
case "QueryUserRecs":<br />
QueryUserRecs ();<br />
break;<br />
<br />
case "AppendTicket":<br />
AppendTicket ();<br />
break;<br />
<br />
default:<br />
break;<br />
}<br />
Looks ok, right? The strange thing is, this only works if I make the szMethod variable a String object, convert it to upper case and set the switch case values upper case as well (lower case also works):
<br />
<script language=javascript runat=server><br />
var szMethod = new String (Request.Querystring ("Method"));<br />
<br />
switch (szMethod.toUpperCase ())<br />
{<br />
case "QUERYUSERRECS":<br />
QueryUserRecs ();<br />
break;<br />
<br />
case "APPENDTICKET":<br />
AppendTicket ();<br />
break;<br />
<br />
default:<br />
break;<br />
}<br />
If I don't code it this way the switch statement falls through to the default case. I've inserted Response.Write's to be sure I'm coming in with the proper Method values and it looks correct on paper, but it just doesn't work. Funny thing #2: using mixed case works if the switch statement is in the same page/module as the function which calls it:
<br />
function AddMOTD (which)<br />
{<br />
switch (which)<br />
{<br />
case "Global":<br />
break;<br />
<br />
case "Product":<br />
break;<br />
<br />
case "User":<br />
break;<br />
}<br />
}<br />
...<br />
<button name="btnAddGlobalMOTD" disabled onclick="AddMOTD('Global')">Add/Update</button></td> <br />
[Edit: the event assigned to AddMOTD() is onclick but CP has replaced it with removed (probably a safety issue). [/Edit]
Right now I have a method that works, but it seems kludgy.
Any clues as to what's going on?
'til next we type...
HAVE FUN!! -- Jesse
-- modified at 14:34 Tuesday 9th May, 2006
|
|
|
|
|
The QueryString method returns a collection, not a string. When you try to compare the collection with strings in the switch, you get no match.
Use the Value property to get the collection as a string:
var szMethod = Request.Querystring("Method").Value;
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: The QueryString method returns a collection, not a string
If that's the case, why do I get the proper string when I insert a Response.Write(Request.Querystring("Format"));
Also, Response.Write(Request.Querystring("Format").Value) does not print the string. In fact, I cannot find .Value as a property of Request.QueryString in any MS documentation.
Finally, I tried your suggestion and it does not work.
Thanks for trying, though.
'til next we type...
HAVE FUN!! -- Jesse
|
|
|
|
|
Jesse Evans wrote: If that's the case, why do I get the proper string when I insert a Response.Write(Request.Querystring("Format"));
Because the Write method will get the value of the collection, which is a comma separated string with the values of the collection. If the collection only contains one item, there is nothing to separate with commas so the value will be that single item.
Jesse Evans wrote: Also, Response.Write(Request.Querystring("Format").Value) does not print the string. In fact, I cannot find .Value as a property of Request.QueryString in any MS documentation.
Right. My bad. There is no Value property. My memory failed me.
The Querystring method returns an IStringList object, which has the Count and Item properties.
You can use the Item property to get the first item in the collection:
var szMethod = Request.Querystring("Method").Item(1);
As the Item property is the default property of the object, you can also write it like this:
var szMethod = Request.Querystring("Method")(1);
You can also use anything that will get the value of the collection, like:
var szMethod = new String(Request.Querystring("Method"));
---
b { font-weight: normal; }
|
|
|
|