|
Paul Riley wrote:
Still haven't figured out what's causing it though
It was the CLEAR line! I had too many quotes or I was qouting the element not passing it.
It works now, but what a vague error message, that just put me completely off track!
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
You jest?
So how did it come to Line 2, Char 1? That's what had me so confused. Daaaaammm!
Paul
|
|
|
|
|
Paul Riley wrote:
So how did it come to Line 2, Char 1? That's what had me so confused. Daaaaammm
I think I have learnt in 3 days not to take JavaScript error messages seriously
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
What do think so far?
Sorry I was offline doing Real Life Stuff when your question came on, but glad the others could help
I think your example looks really good. I especially love the way you can reply to a post ON THE PAGE instead of having to go to another page.
|
|
|
|
|
Paul Watson wrote:
Sorry I was offline doing Real Life Stuff when your question came on, but glad the others could help
Now that my free GPRS has ended, I only have offpeak times to be online, but they talking about ADSL in the Cape maybe as early as December At least I have 128k ISDN to keep me happy untill then...
Paul Watson wrote:
I think your example looks really good. I especially love the way you can reply to a post ON THE PAGE instead of having to go to another page.
I heard that David Wulff did that too in his forums, but I never looked I thought it would probably be easy enough...maybe I should have a look
Tell me Paul, can I POST data to the server without having to refresh the page? Sort of like a "quick" reply? Seeing that the page is eating up alot of bandwidth for formatting, I'm trying to cut down on extra bandwidth.
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
can I POST data to the server without having to refresh the page
Not sure if you can do this "directly" because it is contradictory to how the whole web-page/http model works, something HAS to go back to the server with the POST data.
But there are ways to do it indirectly, though they are a bit complicated. One is to have a "hidden" IFrame on the page which contains a FORM element with the same FORM elements as the FORM you want to submit. So when the user clicks the "submit" button instead of that FORM being submitted it will send the element values to the IFrame FORM (using JavaScript client side) and then that FORM is submitted. You can then, like Leppie did, update the page DOM to include the new reply. The main problem with this is that you will have countless validation problems which are normally done on the server side. For instance duplicate posts, how do you handle that? Server side it is easy, but client side would be a major pain.
All in all it can be done but it is more effort than it is worth and it just goes against the web-page/http model really.
leppie wrote:
Seeing that the page is eating up alot of bandwidth for formatting, I'm trying to cut down on extra bandwidth.
Care to share the page? Maybe I can offer up some tips on cutting down the formatting code and the footprint of the page.
|
|
|
|
|
Paul Watson wrote:
But there are ways to do it indirectly, though they are a bit complicated.
Thanx , I understand the logic
Paul Watson wrote:
For instance duplicate posts, how do you handle that? Server side it is easy, but client side would be a major pain.
Maybe pop up an alert from the "hidden" frame? I havent even got around to making a database Still trying to get the model in my brain (I cant figure out how UML works) once its there it will stick
Paul Watson wrote:
Care to share the page? Maybe I can offer up some tips on cutting down the formatting code and the footprint of the page.
Sure once its done, this is really a side project to a project I'm doing at the moment and although it wont need a forum (i would be nice though) , it will need a member system, so I thought I will 2 birds with one stone while I get up to scratch with HTML and what it can do.
Paul Watson wrote:
You can then, like Leppie did, update the page DOM to include the new reply.
Who is this leppie oke you're talking about? too many 's?
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
Who is this leppie oke you're talking about? too many 's?
Sorry about that, oke. I had one too many Bertram's VO Brandy glasses earlier and for some odd reason thought while replying to you that leppie and you were different people...
|
|
|
|
|
Paul Watson wrote:
I had one too many Bertram's VO Brandy glasses earlier
That inspired a sip from my bottle of KWV 5Year that has been on my desk for odd year now Mind you its allmost finished.
Drinking only makes you dumb! And dumbness leads to mistakes!
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
Drinking only makes you dumb! And dumbness leads to mistakes!
Ai but by god it feels good getting dumb...
Ok I am off home, far too late to be at the office Chow
|
|
|
|
|
Paul Watson wrote:
Ai but by god it feels good getting dumb...
Nah, been there done that, got the T-shirt!
Paul Watson wrote:
Ok I am off home, far too late to be at the office
Now thats SAD! Arent you scared someone sees you? Then again it is 3AM, who will see you?
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Hello,
In my ASP VBScript file, how do I trap the VBSCript compile error. I am using 'On Error Resume Next' and also using the Err object. But still the compilation errors are not being trapped by this code. Can you help me in sorting this out?
Thanks in advance
Hitesh
|
|
|
|
|
Hitu wrote:
Can you help me in sorting this out?
No, I can't and I think noone can. This kind of error occurs before any code of yours execute.
Sorry
"In an organization, each person rises to the level of his own incompetence." Peter's Principle
|
|
|
|
|
Why would you need to trap compile errors? They should and will throw a HTTP:500 error. You can see what the actual error is by turning the "show friendly messages" option off in IE but a compile error should be fixed not trapped.
On Error is for trapping exceptions which is a different thing entirely.
Paul
|
|
|
|
|
anyone use JScript for server side?
I think it is a garbage collected language, so it would be good to use it in a site with many pageviews???
Casa.Sapo.pt
|
|
|
|
|
I posted about this the other day and couldn't come up with a solution, I still haven't slept since then.
I am using Index Server to add a search function to our intranet, It is working fine except for the "characterization" , or in other words the abstract.
It will not return anything. I asked the server folks to verify the catalog option were set to generate the "characterization" and they are.
I test my exact same code on the internet server and it works 100% perfectly. On the Intranet server it will not return an abstract, I get zero errors, I just can't get a description. I have searched HIGH and LOW on the web only to find nothing. I don't know where else to turn?
I don't know why it won't return anything for the "characterization"? Does anyone have any ideas?
I do know that the servers are differnt:
Intranet is Win2000, IISv5.
Internet is WinNT, IIS v4.
I don't think that should be a problem tho, you would think that the problem would be with the WINNT not 2000.
Thank you so much for your time
|
|
|
|
|
Is this possible?
All the examples I see targets "style" of an element. Is it possible to change the class then as well? Will it behave "dynamically" clientside?
OK, then one last question, what can I use to debug JavaScript?
Cheers all
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
All the examples I see targets "style" of an element. Is it possible to change the class then as well? Will it behave "dynamically" clientside?
The class HTMLElement has a className property, I would assume you can use that.
leppie wrote:
OK, then one last question, what can I use to debug JavaScript?
alert("I am here"); is one of my favourites.
Paul
|
|
|
|
|
Paul Riley wrote:
alert("I am here"); is one of my favourites.
Yep it's a life saver, especially as you can include javascript variables in it with + varname
The following statement about your geekness is true. The previous statement about your geekness is false.
|
|
|
|
|
Megan Forbes wrote:
Yep it's a life saver, especially as you can include javascript variables in it with + varname
Well, yeah, I was heading for the simplistic
In reality, it's usually the first word that pops into my head and when I'm debugging that is usually a four-letter word, but this isn't the soapbox so I'll say no more
This all stems back to my C on Unix days where a few printf()s were actually more effective than the dire debuggers.
Paul
|
|
|
|
|
Paul Riley wrote:
alert("I am here"); is one of my favourites
o god! Someone else pointed me to the MS Script Debugger that is on the Win2k Server Resource kit. Has anyone used this?
Paul Riley wrote:
The class HTMLElement has a className property, I would assume you can use that.
Nothing happens! Hence the need for a debugggger!
Thanx
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
o god! Someone else pointed me to the MS Script Debugger that is on the Win2k Server Resource kit. Has anyone used this?
Briefly. I went back to alert("I am here");
leppie wrote:
Nothing happens! Hence the need for a debugggger!
alert("class = " + element.className);
Paul
|
|
|
|
|
I just spend over 2 hours trying to find a reoccuring JavaScript error. After 2 hours I realise like all ECMA based languages variables cannot start with numbers! I changed my sequencing from [number][Name] to [Name][Number] and all was OK.
I JUST WANT A DAMN DEBUGGER! How am I suppose to know "Missing )" means "bad varaible name choice"?
Finaly time to relax
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
I JUST WANT A DAMN DEBUGGER! How am I suppose to know "Missing )" means "bad varaible name choice"?
You're not; everything in JavaScript is "Missing )", it's part of the C legacy . And a debugger isn't going to help you there either, it's only going to throw the same error on the same line.
However, if you'd written alert(23WhenBadThingsHappen); on the line above it and the same error had moved up to the new line, you might have had an idea... see how great alerts are?
Be alert, the world needs more lerts
Paul
|
|
|
|
|
Paul Riley wrote:
see how great alerts are?
Not when your mouse is registered with plenty clicks , mouseover, mouseouts. Then it gets plain annoying!
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|