Reply to topic
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
THEM CAPS SURE IS ANNOYING HUH! SHE MUST BE ON AOL

i try not to follow things as the norm either, sometimes they maybe small things but relivant. FOr example, most everyone buts their menus on the left hand side of the page, why? thats completely stupid when u think about it. Its great for left handed ppl but most are right handed, so everything u want to hit a menu item you gotta run the mouse all the way to the left hand side cause the natural position is sitting on the right hand side. SO why not just put the menu on the right hand side?

next thing would be this, i wouldnt wast my time on asp at all, its a depreciating syntax maybe .net but i think someone like u would be a lot more comfy with (of course the best one!) coldfusion. Its very easy to learn, much more so then any other syntax.

<!-- message here--> is ok to use and // is only a single line thing, u can use /* */ for multiple lines of comments


i forgot what else i was gunna say grrrrrrrrrrrrr
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1031
Location: Felton, Delaware
Reply with quote
Anybody with 5 (maybe 6 Wink) mins can figure out CF... it's an eeeeaaasssyyy language. Thats why it was one of my first.

Now lets get off that high horse D, we all know .Net's the best technology around Wink

And you know what's funny? I did an intranet site for a large real estate company, and my design incorperated the nav on the top and right hand sides (top was very commonly used things no matter where they were in the site, so it made sense)... and they looked at me like I was retarded!!! But they used it... still are Wink
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
i usually make the navs on top & bottom and sometimes the right.
ppl are stupid but if u explain why then they understand, i think whomever made the 1st website with a menu was left handed and everyone just copied it.

ok josh
Now lets get off that high horse D, we all know .Net's the best technology around

lol that must be because Microcraps stuff is SO much more safe, secure & reliable more than everything else Wink
they said the same thing about ASP when it came out!
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Speaking of positioning, what would you guys say about putting the search tool on the bottom of the page? Most sites have it on the left or top. I'm considering the bottom because it visually clashes on top and its a bit too big to fit on the left side (within my pre-established borders which I don't want to alter just yet).

Yeah, I forgot about mentioning Coldfusion... one you (Dave) often speak of... so

Question #2: How does Windows react to Coldfusion and ASP.Net? I know it supports Javascript however. I'm not wanting to change browser systems (not in the forseeable future anyway).

A comment for Josh: I still haven't been able to make your Javascript code work (to bring up hidden text) although it could be for reasons other than the code itself. While I get pop-ups from Windows warning me of an 'object', it does offer me the choice to run it or not. Choosing 'yes' made no difference however, it still won't work.

One problem I had with the code was that I had to convert some of it into acceptable characters. For example, quotation marks instead of alt+& or whatever. Josh, I suppose you're using something other than Windows then?

Anyway, the following is what I came up with, tried, but didn't work (I added the message and <script> stuff):

<p>
<!--BEGINNING OF SCRIPT//>

<script language="javascript">

<span style>
function HideShow () { <br>
&nbsp; <br>
&nbsp; if (document.toggletext.style.visibility = 0) { <br>
&nbsp; &nbsp; document.toggletext.style.visibility = 1; <br>
&nbsp; }; <br>
&nbsp; else { <br>
&nbsp; &nbsp; document.toggletext.style.visibility = 0; <br>
&nbsp; }; <br>
<br>
}; </span>

</script>

<!--END OF SCRIPT//>

</p>
<p>

<span style>
<form id="toggletext"><br>
&nbsp; <input type="submit"value="Show Me"
name="btnOne"onClick="HideShow();" /> <br>
&nbsp; This is the text you want toggled between hidden and here. <br>
</form> </span>

</p>


Any thoughts on this?
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
i think u have some things confused
josh and i both run windows/linux boxes (i believe he does) on a dual boot system.
the javascript he gave you shouldnt matter what kind of machine it runs on.
Thats one of the main points to this whole thing. It should be able to run on anything

ok looking at your code is is the 1st problem
<!--END OF SCRIPT//>
thats not going to work
either use
<!--END OF SCRIPT-->
or
//END OF SCRIPT
i'd use the first, dont worry about what u have read because ur taking it wrong


<!-- content -->
this code block (anything inbetween <!-- and -->) tells the browser that it is not code and not to process it, its only there as a developer comment, doesnt even have to be there

but running what u had will throw an error, real fast!

u also have html code within your java parameters and that wont work, so as is the code is useless. Tell me again what ur looking to do


now languages such as coldfusion, .net, php, jsp are what are called "server-side scripting languages", which means that they are processed by the web server and not the browser. What actually happens is that you make the request and it is sent to the server where it is processed and returned to your browser as reg html code.
so it doesnt matter what platform ur using. But whatever browser ur using will determine how that final output is displayed to you. And thats where validation comes in.

ok back to this code

did u put all the extra syntax in there or did frontpage do that?

this
--------------------------------------------------------------------------
<!--BEGINNING OF SCRIPT//>

<script language="javascript">

<span style>
function HideShow () { <br>
&nbsp; <br>
&nbsp; if (document.toggletext.style.visibility = 0) { <br>
&nbsp; &nbsp; document.toggletext.style.visibility = 1; <br>
&nbsp; }; <br>
&nbsp; else { <br>
&nbsp; &nbsp; document.toggletext.style.visibility = 0; <br>
&nbsp; }; <br>
<br>
}; </span>

</script>

<!--END OF SCRIPT//>
------------------------------------------------------------------------

should look more like this
--------------------------------------------------------------------------
<!--BEGINNING OF SCRIPT-->

<script language="javascript">

function HideShow () {
if (document.toggletext.style.visibility = 0) {
document.toggletext.style.visibility = 1;
}
else {
document.toggletext.style.visibility = 0;
}

}

</script>

<!--END OF SCRIPT-->
-----------------------------------------------------------------

Thats a perfect example of how frontpage completely trashes your code, do u see what i mean?[/b][/quote]
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
u could just do a simple alert box
if u cant figure that out i will post come code later
i gotta sleep sometime i and i need to reinstall CrapOS (winxp)
when i get up, which i getta do every month seeing how great m$ crap is
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Okay, the following is what Josh gave me of which (as I said) I had to convert characters. By that I mean that quotation marks and "< >" were somehow converted to things like "alt + &" which FrontPage won't act upon.

Personally I'd do this via javascript and here's why:

That ASP script is going to require a postback (to the server, and then back to the requesting client again) and is therefore slow. However, javascript will execute all locally without the postback, and the change will be instantanious.

Google (or other search engines) will not penalize you for this. This is a very common thing, not just for text, but for forms and other functionality. There are many websites that utilize "hidden areas" even if it's just navigation because of your same reason: they don't want it all on the screen at the same time.

No comments on everything else But if I were you I'd do the javascript. It's much faster and cleaner as well. I can guarantee you won't be penalized.

Sooo... see if this works. Now I'm not fluent in JS so don't quote me on this... I believe you're going to need the text in a form tag too.

PAGE CODE
Code:

<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>


JAVASCRIPT CODE
Code:

function HideShow () {

if (document.toggletext.style.visibility = 0) {
document.toggletext.style.visibility = 1;
};
else {
document.toggletext.style.visibility = 0;
};

};


@ Anybody: If I'm wrong please correct me, because as I said im no js guy... Good luck Allen!!!

_________________
Josh W.
Web Developer


Now, if html code is within these Javascript parameters, well, I just tried to run it as Josh suggested... I just assumed Javascript utilized html code to some extent.
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Oh yeah, the
&nbsp;
is what FrontPage added but that just means 'space', and that space was because of the span style. I don't know why the original code used the span style which I was tempted to take out. If I had, then the "&nbsp;" wouldn't have been there. In the end I didn't think "&nbsp;" would affect anything.


Last edited by Allen on Sun Nov 07, 2004 12:43 pm; edited 1 time in total
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
well see frontpage is adding all that code in there that makes it not work
wwhich is the VERY reason of my hate towards fp lol
do u see what i mean now?

what u need to do is add it to the code view and not the design view and if it add the code the delete all the extra crap frontpage puts in it

heres 2 ways i threw together real quick, look at source code on the page
very easy

http://www.jamwerx.com/1.htm
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
see when fo adds
&nbsp;

into the java code it screws it up, if it was reg html it wouldnt

but java doesnt allow mistakes or addins like that where html will allow it
thats why html is being dumped and xhtml is being brought in as the standard
which is a long story, maybe after i sleep

btw~ the coding on those examples is basically in xhtml except the capital P's
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Yeah, that's the idea... something I thought Josh's code would do.

P.S. I always enter code in 'code view' (which FrontPage calls the 'html' view). If I didn't, all the code shows up on the design page. As far as converting characters, I have to do that all the time... even when I try to put in a URL address I copied somewhere. I admit, that is a pain and perhaps unique to FrontPage. I don't know why FrontPage converts one character into another character it can't act upon.

Just like Josh's code for example... in looking at it, all the characters would be legitimate for FrontPage until, that is, I paste it. It then converts characters into characters it won't act upon. I have to pick through the code to change everything back as was intended.


Last edited by Allen on Sun Nov 07, 2004 1:14 pm; edited 1 time in total
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
well play with it for awhile
just remember to add it to your code and not the design part of the page

i gotta get some sleep before "Bronco Time" Wink
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
I gather "Bronco Time" has nothing to do with watching the "Howdy-Doody" show? Laughing

Okay this is what I mean about FrontPage converting characters:

You suggested this:


<!--BEGINNING OF SCRIPT-->

<script language="javascript">

function HideShow () {
if (document.toggletext.style.visibility = 0) {
document.toggletext.style.visibility = 1;
}
else {
document.toggletext.style.visibility = 0;
}

}

</script>

<!--END OF SCRIPT-->



But when I pasted the above in FrontPages' 'html view', I get this:


&lt;!--BEGINNING OF SCRIPT--&gt; <BR><BR>&lt;script language="javascript"&gt;
<BR><BR>function HideShow () { <BR>if (document.toggletext.style.visibility = 0)
{ <BR>document.toggletext.style.visibility = 1; <BR>} <BR>else {
<BR>document.toggletext.style.visibility = 0; <BR>} <BR><BR>}
<BR><BR>&lt;/script&gt; <BR><BR>&lt;!--END OF SCRIPT--&gt;


You can see how it changes the characters (which it won't act upon)... it is curious and aggravating. I then must change everything back... the chance of error being there.
cpnet


Joined: 03 Nov 2004
Posts: 135
Reply with quote
If you paste into the "Code" view, you'll get what you want. If you paste into the "Design" view, you'll see stuff messed up (on FP 2003). If you're still having problems try pasting into NotePad then cutting and pasting from NotePad to the "Code" view.

Also you mentioned that you didn't see the value in CSS. Here's some of what it's good for:

- Separating your content from your look and layout.
- This lets the author of content not worry about how it will look, they can focus on just the content.
- The lets you easily update the look of your site without. If you have 100 pages, and you want to change the font of the heading for your pages, you have to change all 100 pages if you're just using non-CSS HTML. With CSS, you make a single change in your .css file, and the heading is updated for all 100 pages.

- reduce the amount of HTML code that is sent to the client's browser.

- Allows you to more easily use JavaScript to manipulate the look of your webpage

- Allows you to do fancier formatting - stuff like you'd see in a newspaper where the main text wraps around a picture or an important sidebar or block of text
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Thank you for your css comments, I can now see the possible benefits. As for pasting the code however, I do use the 'code' view and that's what's so strange about it. It should paste exactly as copied but it doesn't.
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 3 of 5  

  
  
 Reply to topic