|
Um, you haven't got a window.onload call in that code.
Try adding an onload event to your body tag:
<body onload="javascript:myFunction();">
cheers
Ben
|
|
|
|
|
Hello,
when i press on some link i received the following error
Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed
i tried to install service pack and this option doesn't fixed the problam.
i working with --Server.CreateObject("IISSample.PermissionChecker")--element
asp 2. (no dot.net)
pls help my
|
|
|
|
|
|
so i can't to solve this problem if i do something in the asp file? (for ex:
write some code with other syntax)?
|
|
|
|
|
No - the code you have is the right code to load a COM object. If the error is that the object is not installed, no change to your code will install it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
u don't understand me...
i know that my code can't install it...
i mean maybe i working with other asp element...
never mind...
|
|
|
|
|
Hi Guys,
can someone recommend a very good cms tool (especial for creation of asp.net(c#)pages) to me?
thanks.
|
|
|
|
|
Have you found one?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi All,
I need a sample code for download files. I have file extension .txt, .htm, .pdf etc.....
I want a link to download the file or view the file.
when the user click the link, then i need a dialog to download or view file.
It should support for all the files.
Please help me..............
Thanks & Regards
Kumaran
|
|
|
|
|
|
Have you searched the articles here? There are several articles that talk about how to do things like this, including this article[^].
|
|
|
|
|
hi all
i developed a web page using asp. I have a link button in my web page when i click on the link button i want a list of item to be diplayed just like dropdown list can anyone help me to solve this prob
thanks in advance
|
|
|
|
|
Three solutions, in decreasing order of sanity:
- Use a SELECT (dropdown) list.
- Use one of the many dropdown "menu" controls out there.
- Write your own DHTML dropdown control and attach it to the link.
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
I want to send SMS from my website to my customer when he got importand message. how can i do it using php?
Pleae help me
Alex
|
|
|
|
|
By googling for the various web services that allow ths, I guess.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Hi everybody,
I have a script in two pages. Page1 works fine, Page2: type missmatch = "return"
Here is the vbscript
Function CatchKeys()
ix = Window.event.KeyCode
If ix <> 8 and ix <> 9 and ix <> 37 and ix <> 39 and ix <> 46 and (ix < 96 or ix > 105) then
If ix = 27 then
Window.event.srcElement.value=""
End If
CatchKeys = False
else
CatchKeys = True
End If
End Function
I use it to filter user input in a textbox I create programmatically, therefore I use the following to enable the script:
CType(iCtrl, TextBox).Attributes.Add("onKeyDown", "return CatchKeys()")
This works just fine!, but it does not in Page2.
The only difference I am aware of if that in page two the textbox is part of a template column, and therfore the assignment is in its declaration.
<asp:TextBox id=Textbox1 style="TEXT-ALIGN: right" runat="server" ForeColor="#000000" Font-Name="tahoma" Width="70px" BackColor="FloralWhite" Font-Bold="False" Text='<%# DataBinder.Eval(Container, "DataItem.Credit", "{0:n0}") %>' onKeyDown="return CatchKeys()" MaxLength="8"></asp:TextBox>
What I am not seeing?
Thanks a lot for your time and help.
Alex.
-- modified at 13:57 Friday 19th October, 2007
|
|
|
|
|
Why are you using VBScript, are you looking to block firefox users ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian,
Thanks for you time.
I friend asked me the same question! I just changed it to javascript and it works greate (including firefox).
Can I ask another question? I am trying to complete a project a.s.a.p. and I will most certainly need to add a lot of javascript voids and functions. Would it be possible for you to recommend on-line "straight to the point" javascript book or manual.
Once again, thank you very much for your time.
Alex (I won’t use vbscript this anymore.)
|
|
|
|
|
http://www.w3schools.com/js/default.asp
|
|
|
|
|
Hi,
I have a find page that has 3 textbox control and 1 button. My problem is that every time I wanted to search some record I will always hit the button so that it will do the event under the button click.
Is there a way to call the button_click event when the cursor was positioned on the textbox? For example the cursor was focus in one of the textboxes and if I will hit the <enter> key, how can I call the button_click event?
hifiger2004
|
|
|
|
|
Do you think it's a proper interface at any case Triggering the Button Click Event on the Click of a TextBox. .NET doesn't provide TextBox_clcik Event.
Suggestion - Use Button Instead
Regards - J O N -
|
|
|
|
|
Ok, when the cursor is positioned on the search textbox, instead of moving the mouse toward the button where the searchfunction is triggered much better if it just simply press the <enter> key from the search textbox and then the button_click event will be triggered.
I think this make sense, right? But the problem is I don't know how to do it?
hifiger2004
|
|
|
|
|
I have an asp page wich submit two fields, title and contents. Now if user type single code ('), or semi-colon (;) and replace (the word REPLACE) then on submitting the form, page crashes.
Any help please..
Note: it is working fine on development server (win 2003) but crashing on production server (win 2000)
-----
|
|
|
|
|
Could you specify "crashes"? Does the page look different? Do you get an error message? Does the web server crash?
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|