|
You'll have to send raw HTTP information directly to the server to avoid using <form ... method="post"> . I would avoid this if at all possible.
You don't need to have visible form elements at all if you are trying to pass a value. For instance...
<form action="something.html" target="_new" method="post" name="frmMain">
<input type="hidden" name="mydata" value="this is so like my data">
<a href="javascript:frmMain.submit();">Clickety</a>
</form> This will send the information without displaying anything but the link (anchor) in the browser.
What is it exactly you are wanting to do? There may be another way. If not, I'll outline some details on using raw HTTP data.
Jeremy Falcon
Imputek
<nobr>"The happy people are those who are producing something; the bored people are
those who are consuming much and producing nothing." - William Ralph Inge
|
|
|
|
|
Just send data in form fields to the server without using form tag, cookies or encoded URL's...
Pushing raw http data is the only way I see available.
How would I go abouts doing this and why would you recommend me not using this approach...so long as I do it correctly is see no worries...???
Thanx again!
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
Just send data in form fields to the server without using form tag, cookies or encoded URL's...
From a web page or from a program? Netscape won't even render form elements unless they are enclosed in form tags. And the default method is GET, so unless you specify otherwise you won't be able to POST the data.
Jeremy Falcon
Imputek
<nobr>"The happy people are those who are producing something; the bored people are
those who are consuming much and producing nothing." - William Ralph Inge
|
|
|
|
|
From a webpage using JScript.
I've used text elements before without wrapping them in form tags in NS6+ and it worked fine.
I find in IE form tag just adds padding and causes alignment issues sometimes...
Plain and simple I hate form tags...
Thanx again!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
I've used text elements before without wrapping them in form tags in NS6+ and it worked fine.
Yes, but NS 1.x, 2.x, 3.x, and 4.x won't as not using the form tag is improper. NS 6.x renders closer to the way IE does. Test and ye shall see.
Hockey wrote:
I find in IE form tag just adds padding and causes alignment issues sometimes...
That is true, my solution is to place the form tags inside tags that will not render on a web page - like between table data tags.
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<form>
<td>
Put the form elements and other stuff here!
</td>
</form>
</tr>
</table> This will stop the extra crap from rendering.
Jeremy Falcon
Imputek
<nobr>"..." - Paul Watson 07-17
|
|
|
|
|
Jeremy Falcon wrote:
Yes, but NS 1.x, 2.x, 3.x, and 4.x
Holy...your that cross browser friendly...???
I only bother with NS6+ sometimes don't even bother with that...
Anyways...do you know of any method available in JScript for sending raw http data or can this not be accomplished???
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
Anyways...do you know of any method available in JScript for sending raw http data or can this not be accomplished???
Client-side is impossible because HTTP header information is sent to the browser first. This is before any client code is even touched. [edit]To send data to the server via a script you can use a form, stick with GET, or execute a server-side program.[/edit] On the server-side you have to use ASP, PHP, SSI, CGI, a raw HTTP stream, etc. to manipulate the header information (which contains the POST data).
What I don't get is that knowing you can use the form tag to pull this off and stop from the extra stuff from rendering, why do you still not want to use it?
Jeremy Falcon
Imputek
<nobr>"..." - Paul Watson 07-17
|
|
|
|
|
Jeremy Falcon wrote:
What I don't get is that knowing you can use the form tag to pull this off and stop from the extra stuff from rendering, why do you still not want to use it?
Just an idea i've been toying with for an article here on CP...IMO it's super cool...
I'll prolly have to use cookies now tho...
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
IMO it's super cool
Sounds interesting.
Hockey wrote:
I'll prolly have to use cookies now tho...
Cookies are extremely finicky though and can quicky bring you into a lot of compatibility issues. Be weary of the cookie!
Jeremy Falcon
Imputek
<nobr>"..." - Paul Watson 07-17
|
|
|
|
|
Jeremy Falcon wrote:
Coockies are extremely finicky though and can quicky bring you into a lot of compatibility issues. Be weary of the cookie!
How so...?
I've never experienced compatibility problems with NS or IE using my cookie object. Website persistance
Mind you I haven't really tested hardcore under NS, but who does...with only 10% of the browser market.
I proudly announce NS sux...and suggest all my clients stick w/ IE
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I am looking for a script or component I can on a website I am developing that would allow users of the site to enter content in a textbox, such as I am doing now, and then be able to apply formatting (with WYSIWYG support would be nice) to the text or parts of the text without having to know the required HTML.
For example, on this site if I want to make this word bold, I have to wrap the word bold with 'b' and '/b'. I would like to be able to highlight the word and click bold.
Also, a spell checker would be nice, too.
-DarrenS
|
|
|
|
|
|
Give me your email and I will post a exm to you,a html+DHTML exm
|
|
|
|
|
I need to hide a table and to show it after the page has loaded at a later moment.
Do you know how could i do it?
rechi
|
|
|
|
|
Bogdan Rechi wrote:
I need to hide a table and to show it after the page has loaded at a later moment.
Ok I won't write all your code for you, but here is the general idea.
First you use CSS to hide the TABLE. You will need to do it inline (which is bad, but about your only solution) so that the TABLE is hidden and we don't have to wait for the CSS file to load. Use style="display: none" or style="visibility: hidden" in the TABLEs opening tag. e.g. <table style="display: none"> .
Then you need to give your TABLE a unique ID so that we can reference it. e.g. <table id="tblHiddenTable"> .
Then in your BODY tag you need an ONLOAD event which will set the DISPLAY attribute of the TABLE to inline , this will display the TABLE once the page is loaded. e.g. <body onload="document.all.tblHiddenTable.style.display = 'inline'">
That shows the table once the page is loaded. If you want to display the TABLE even after that a specific time, say 5 seconds later, then you need to use onload="setInterval ('next_frame(document.all.tblHiddenTable.style.display = 'inline')', 5000);" . setInterval basically allows you to fire off a function after a certain number of milliseconds have elapsed.
hope that helps, if not write back.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
hi adding to the reply you got to fire of ur event you can use the ie_timer control.its prety easy to use.Write the code to make your table visible in the ie_timer() event ..
Regards
Pradhip.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Hi Folks..
Im using multiple forms ie form1 and form2 in my web page(html page) and each of the form submits its values to seperate asp pages.Now after the asp pages process the values i have to comeback top this webpage.
So i use response.redirect and sometimes server.transfer from the asp page to come back the html page.and my question is how do
i avoid the page from being refreshed. i mean my webpage has some pictures(say pic1) in them and they all belong to form1 and they get changed when the user changes it to say pic2.
But now its refreshed becos form2 was submitted and comes back to the html page then my form1 has picture1 while i want it to have picture2..
Do i have to use of ispostback or some propery like that to make the page understand that it has to kind of maintain its state.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Try this in your ASP page:
<%
... ...
'some ASP code
... ...
%>
|
|
|
|
|
hi
any 1 have idea how too use listview or any such control
in asp....
looking forwar dfor reply
tc
|
|
|
|
|
I want to set my page Automatically as the homepage without prompting the user ....i mean when the page is loaded it should be set as the homepage(automatically)
|
|
|
|
|
That's very nasty, and the sort of thing that's likely to really annoy users.
There's some javascript here that gives a manual link to set a page as the homepage. You could edit the script to automate that.
However, if I found a website had changed my homepage to itself without my knowledge or permission, I'd change my homepage back, and make a mental note to never visit that site again
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
When I create a standard HTML document with or without a Cascade Style Sheet all links are underlined.
When I visit Code Project links do not get their underline until I place my cursor over the top.
Is this caused by ASP, JavaScript or something else completely?
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
|
Nishant S wrote:
This is a snip from CP style sheet. It's self explanatory
Thanks for the answer Nish.
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
Michael Martin wrote:
Is this caused by ASP, JavaScript or something else completely?
Nish's answer is sufficient but I thought I might be permitted to elaborate a bit. (also if you want to push your CSS knowledge then this stuff is important)
It is all done using CSS and Selectors (W3C link). Selectors are so, so important to CSS. And you are using them even if you don't know it. p.michaelsheading{font-size: xx-large} is using a class selector. (applied by writing <p class="michaelsheading">Michael and CSS</p> )
Another selector is p#michaelsheading{font-size: xx-large} and that is basically an ID selector. (applied by writing <p id="michaelsheading">Michael and CSS</p> )
Then you get what Nish showed you were :Hover , :Link etc. are another form of selector.
The nice thing, and the point of this post, is that you can combine them. So if you want two links on your page but with different styles you can go a.menu:hover{color: #ff9900} for the one link and a.content:hover{color: #99ff00} for the other link.
CSS is so cool
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|