Reply to topic
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
well so much 4 bed grrrrrrrrrrrr
css is a MUCH needed skill!
it really helps unclutter your pages too get those sought after high search engine rankings. among so many other things. and we'll get u into that as u go along.

unfortuantly frontpage is really gunna screw your code up big time, hence the reason to THROW THAT CRAP IN DA TRASH!! haha
do u see why i wont even concider it? it wont even let u add some simple java

ok i been up a really long time and take this for what it is, my opinion
frontpage is the exact perfect example of a microsoft product, it does things its own way, away from eveyone elses standards and doesnt like it if u try and add something thats outside of microsoft. Its their way of saying "well u gotta use or stuff or it wont work & if your friends want it to work then they gotta have our stuff too" which is complete bullshhit!!!!

even internet explore is like that, they purposely stay away from a lot of the web standards which makes everything a real PITA for us.

wait till u try and cut & paste from a word doc into a REAL web app and u will see something similiar to frontpage, all the extra crap u dont see normally.
rant over
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Okay Dave & Josh... back to you guys. Dave you can bow out of this if you want because I'm trying to do this with FrontPage and everybody knows what you think of FrontPage. However you could just consider this as an academic exercise. Anyway....

I tried the code once again as you (Dave) put forth (based on what Josh put forth) but it still didn't work although I had to add this (as Josh though I might) otherwise the 'button' feature wouldn't display itself.

<form id="toggletext">

<input type="submit"value="Show Me"

name="btnOne"onClick="HideShow();" />

This is the text you want toggled between hidden
and here.</form>


Okay now I've got the 'feature' showing (the 'show me' button and inserted text) but when I try to execute it (in the 'preview' view) I get an error message which states
ERROR: 'document.toggletext.style' is null or not an object


I didn't opt for de-bugging since I wanted to track down the problem.
 
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
**** frontpage! haha

im not sure as i dont have it installed

u shouldnt have to have that, u really only need a bit of it, im thinking what josh gave u that part of it might need to be in the head section

try to put just this in and see
<a href="#"onclick="return confirm('Heya howz it going down there in AZ?');">Click Me</a>

im not a js guy either but i can put that on a blank page and upload it and it works, thats really all i did with this page http://www.jamwerx.com/1.htm
just opened up notepad2 and did that

what version of ie are u using?
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
but do u see why i hate frontpage so much now??

it doesnt allow u to properly build something, it wants to dictate how u do it and what u can use, the stupid thing lol
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Yeah, I'm beginning to see what you mean about FrontPage. Shoot, I might be on your bandwagon before you know it!!!

Anyway as to the comment "cpnet" made about pasting code on NotePad first is a good idea... I should have thought of that. I'll try it next time but I'm sure (fairly sure) it will copy exactly.

Okay Bronco time, what about that error?

ADDITION: I didn't see your post but I've got Windows XP
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
no almost bed time screw the donkeys!

that error means its not being initiated and is missing part of the code

also, with notepad i have even notices it adds unwanted markup
i switched to a program called notepad2
http://www.flos-freeware.ch/notepad2.html

but im not sure its gunna help with frontpage
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
No it didn't help like cpnet & I thought it would. Anyway I tried your new code (after converting it) of:

<a href="#"onclick="return confirm('Heya howz it going down there in AZ?');">Click Me</a>


I got the following error message:

ERROR: there is no page with URL 'onclick=' in this web


Well, I should have suspected that we had to establish that first (perhaps in the head section as well... like you said about Josh's code)

Anyway, I don't think that will work because I want to display just text when someone clicks the button.
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Josh... this is for you (our perhaps unwilling co-conspirator)

Dave said this about your code:

that error means its not being initiated and is missing part of the code


You should be ashamed of yourself for giving this old farmer corrupt code (a bum steer)... or is it a FrontPage thing?
cpnet


Joined: 03 Nov 2004
Posts: 135
Reply with quote
<a href="#"onclick="return confirm('Heya howz it going down there in AZ?');">Click Me</a>


You need a space between

href="#"
and
onclick

so it should be:
Code:
<a href="#" onclick="return confirm('Heya howz it going down there in AZ?');">Click Me</a>


That may be what's causing the error.
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
the non space shoulld be a space but it really doesnt matter, that was actually straight from my code and it works fine

im starting to think this is just a frontpage error
which i would thing even this should work in frontpage

in case i never mentioned it before frontpage sux Wink
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Yeah, as far as I can recall, you never said anything about not liking FrontPage... Rolling Eyes
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
Allen wrote:
You should be ashamed of yourself for giving this old farmer corrupt code (a bum steer)... or is it a FrontPage thing?


Rolling Eyes I didn't say that Wink just kidding

I don't utilize JS much in the work that I do, and is why I provided the "Guaranteed not to work" somewhere in there and gave other people the option to correct it. I just wanted to head you in the right direction with the say JS works... referencing the hierarchial page structure and what not.

What you're experiencing may very well be a front page error, and it may be a problem because, as I stated in a previous post, when you have frontpage extensions installed EVERYTHING is parsed thru the frontpage engine before anything else. I believe the only one (or two) items not parsed by FP engine first are ASP and ASP.NET, though I have worked w/ people experiencing problems running both ASP and ASP.NET thru a frontpage site.

Dave has been giving you the best advice and help possible. Me, I'm going to be worthless since I'm in the process of moving into a new house (Settle on Nov 30) but I'll try to help out where possible.

Allen... if you need a site which is not utilizing FP extensions just as a playground, I will even donate a chunk of my server for you to upload and play scripts and things. Take heed, though, as I don't have ColdFusion running... just perl, asp, and .net.

Just let me know and I'll try to help you out as much as possible, but Dave's setting a hard example to match Wink

P.S. - If you do dump FP, I'm sending you a 6 pack of your favorite brew Wink
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Well, Château Lafite Rothschild Pauillac 1996 runs about $287 a bottle. You might be able to get a discount for a 6-pack tho. Very Happy
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
Shocked

Okay I take it back, but I'll defineately help you in any way I can... Wink
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
I have to correct something I said earlier... I was wrong when I said I tried pasting code to NotePad first (before using it in FrontPage), I didn't try NotePad but instead had used Microsoft Word (which didn't work). Duh!! Well, I later tried pasting it on NotePad first (like cpnet suggested), then re-copied it onto FrontPage and IT WORKED!!

The characters within the code copied from NotePad onto FrontPage were not altered a bit by FrontPage but NotePad did rearrange the code somewhat but it didn't seem to matter... at least it didn't as far as I can tell.

P.S. THANK YOU CPNET Exclamation
Java, Javascript and Windows XP
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 4 of 5  

  
  
 Reply to topic