How To Hide The Redirection Code In This Form
Jun 15, 2011
I am trying to figure out how to hide the direction page in this code:I want to hide: www.ipage.com/mail/index.bml
<INPUT TYPE="submit" NAME="Log In"
VALUE="Check Mail"
onclick="javascript:login.action='http://www.ipage.com/mail/index.bml?s=1';
[code]....
View 5 Replies
ADVERTISEMENT
Mar 2, 2011
I'm a non-web programmer being forced to do some web programming.
My immediate problem is that, on submission of a form, I need to be able to open a url (that I control) with the filled-in form values appended to the new url. In other words, I need to be able to do the equivalent of :
<form>
<input name="key1" type="text"/>
<input name="key2" type="text"/>
<input type="button" value="Submit" onclick="window.open('http://new.domain.com/newpage.html?key1=val1&key2=val2')"/>
</form>
I would really like to do this without server-side code.
View 2 Replies
View Related
Jul 23, 2005
I am looking for a general purpose javascript snippet that enables me to
<div> or <span> HTML to make portions of the form be hidden and then appear.
The form contains about 12 sections and some sections can contain
subsections. When the user clicks on a checkbox, I want previously hidden
text boxes, radio buttons, text, drop down menus, and additional checkboxes
to appear. In some cases, clicking on a checkbox in a section can cause
additional previously hidden text boxes, radio buttons, text, drop down
menus, and additional checkboxes to appear.
Within each section, a list of individual names is displayed with an initial
checkbox beside each name being displayed. Clicking the checkbox beside a
name is what triggers the hidden info to be displayed. The server side
application is written in php and the field names are assigned using
brackets as the array is created. As an example the HTML checkbox beside
the first name <input type='checkbox' name='sect1custname[1]' value'First
Name'> The HTML for the next name woud be exactly the same except the name
field would be defined as name='sect1custname[2]'. All of the other input
buttons, boxes, menus, and text would use the same naming conventions so
that the server side module can correctly process the data.
I am hoping to keep this as generic as possible so that we can add, change,
and/or delete entire sections simply by creating the appropriate HTML and
surrounding it with the correct <div> or <span>. I understand that there
may need to be some javascript wrapped around the checkboxes.
If you know of , or have, or can develop the code, please send particulars
to jscott4272 at comcast dot net. If there are any costs associated with
the code, just let me know what they are. If you have any questions or need
additional information, please email them to me.
View 2 Replies
View Related
Sep 9, 2005
I have a problem with a Javascript dropdown form that is supposed to redirect users to the site that is selected. It works fine in IE, but it supposedly doesn't work in Firefox.
If anyone here can point out what is wrong with this code, I would appreciate it. Also, if there is any way to compact the code down or make it cleaner, that would also be appreciated.
<script type="text/javascript">
<!--
function goto(form) { var index=form.select.selectedIndex
if (form.select.options[index].value != "0") {
location=form.select.options[index].value;}}
//-->
</script>
<form name="nav_form">
<select name="select" size="1">
<option value="">Select a Site
<option value="http://www.sitepoint.com/" />Sitepoint
</select>
</form>
View 1 Replies
View Related
Aug 9, 2005
I am trying to implement a simple JavaScript of redirecting my window
to a new URL upon clicking a submit button. This is an easy task except
when I have to put an input type='submit' in front of the onClick
command. It always commits the CGI action, and skip the URL redirect
part. The example code:
View 2 Replies
View Related
Jul 18, 2010
The form's drop down menu includes three cities (Calgary, Toronto, Vancouver). When the user presses "submit form", the script should create a cookie to store the user's city selection. Next time the user visits the site, they should be redirected to their city's site, ie. "/vancouver.html"
Right now, the code is returning an error from the onload("redirect();") function. The error indicates I am trying to redirect to "/[object HTMLSelectElement].html", but I am not sure if the trouble is in reading or writing the cookie. For simplicity, I've removed most of the other content from this page (my cookie.js is attached as a .doc):
<title>Site Title</title>
<script type="text/javascript" src="cookie.js"></script>
<script language="JavaScript" type="text/javascript">
function redirect() {
[Code].....
View 5 Replies
View Related
Jan 6, 2011
I am trying to hide this code:
HTML Code:
using this code
HTML Code:
This works fine when I place this code under the html in the main source, but if I try to add this Jquery code to an external js sheet it doesnt seem to work?
Currently my js sheet is called in the header, when I move this link to the footer of my page the code works again, so Im guessing this has something to do with where the jquery code is placed in relation to the code Im trying to hide?
How I can keep my js in the header but still make the content disappear on click?
View 2 Replies
View Related
Apr 1, 2010
I have an issue with this directory/locator/finder thing we are building using Google Maps. Will allow you to locate (say) golf courses in your area or anywhere in the US. Anyway, we spent a bit of time adding all the latitudes and longitudes to show the markers on the Google map, and other information into all the javascript code. The problem is, I don't really want a competitor to be able to just find the js file or html or xml and copy it for their own site. So, is the only solution (to hide the information we've gathered) to do this via PHP
View 1 Replies
View Related
Jul 23, 2005
It's possible to protect the source code of a js file? With PHP?
View 15 Replies
View Related
Oct 6, 2004
"No right-click" scripts only end up annoying the users... Is it possible to hide the source code..... without showing the JavaScript source!!!!!
View 14 Replies
View Related
Aug 22, 2011
I have a very generic webpage that I created to attempt to show a rule that is used. I have used some drag and drop language that I found which enables me to drag and drop elements on the page. This is great. My problem is I have a total of 6 drag and drop items in two catagories. CML and nonCML. If one nonCML is used, I'd like two of the CML objects to disappear. (disappear could even be turning white to make them hidden). I'm very new to Javascript. Is there easy code that would say if an item from Catagory 1 is moved, have 2 items from Catagory 2 disappear?
View 7 Replies
View Related
Feb 25, 2009
so I want to set up some 'freebies' on my website... random verses and 'updating' content that I would like to change every so often, without the 'user' of the content (people reposting on their website) having to change the code every time (and without giving away the COMPLETE code)... am I making sense?I want to offer a different code in the 'textbox', where others grab the code than the complete 'building' code...:confused: I am so lost! :confused:I'm brand new at 'codes'
View 2 Replies
View Related
Feb 2, 2010
I am creating a blog and I thought it would be cool to have the Konami code in it. Basically, I would like is to either show or hide a div when the code is entered. So lets say the Div is hidden, they would enter the code and it would then show. If it was entered while the div was shown, it would then hide. Is there any way to do this? I think there would be, but I don't know how to accomplish it.
Here's a link to the Konami code I'm using:
View 4 Replies
View Related
Jan 19, 2005
I have this bit of code that shows and hides various spans and it works great in ie. It doesn't work in Newscape of Firefox - havn't tried it in Opera. How can I change this? Code:
View 5 Replies
View Related
Aug 19, 2010
So I'm making an ecommerce store and I'd want to hide a product scroller and a banner if the page is any other than index.php, and I know jQuery has the .hide function, but all the examples link it to a button/link/other but I don't understand how to code a conditional statement that hides the code if the page loaded is anything else than index.php.
View 2 Replies
View Related
Feb 28, 2011
I have these div tags, they're very similar but I just need to change the IDs.
Is there anyway to condense this code:
View 9 Replies
View Related
Jun 2, 2010
I am passing an araryList from c# code to javascript, but if i do viewsource on page i can see the value of Array, is there any i can hide it, dont what the user to see the values of javascript array if userdoes view source on the opage
View 2 Replies
View Related
Dec 28, 2010
wrote me jvascript code for show/hide table rows.The situation is:
<table 1>
row 1
row 2
row 3[code]...
row 1 and row 4 are in one looping
row 2, row 3 ,row 5 and row 6 are in another one looping.The picture is like this:
1.when page load..
2.only row 1 and row 4 display
3.when row 1 is clicked row 2 and 3 will display
4.when row 4 is clicked row 5 and 6 will display
View 2 Replies
View Related
Feb 5, 2011
I need to somehow hide this block of HTML code in my page. Now I have no control over the code as it comes from another site so there is no ID or anything. If the <a> or <td> tags had ID I could hide it with javascript.
Code:
<tr>
<td>
<center style="color: rgb(82, 87, 87); font-size: 10px;">Some Text <a target="_blank" style="color: rgb(82, 87, 87); font-size: 10px;" href="http://google.com/">google is good</a>
</center>
</td>
</tr>
View 6 Replies
View Related
Oct 10, 2011
I have the following line of code in a page and I need to 'hide' the entire row [code]...
Is there a way to do that?
View 1 Replies
View Related
Sep 19, 2009
I know nothing about javascript but I was able to handle the instructions to install the login/password feature: http://www.javascriptkit.com/script/script2/loginpass2.shtml
works great! however, when someone views the source code, they're able to see what the password is. additionally they can see the url of the page it would take them if they entered the password. how do i protect against this vulnerability?
View 10 Replies
View Related
Nov 11, 2009
I know that we can combine 2 pages into one, but i dont know what exact terms it called or say open and hide?
I have 2 pages, view.php and comment.php. inside view.php there will be a link to open comment.php. instead of doin this, i want to put the codes in one page call comment.php. i'm quiet sure that it using javascript, using id, onclick and sometimes called frames(not sure...) ?? but i dont know how to implement it. So can someone gimme any reference that i can refer to? example and solution aso can so i can get an idea on it.
View 3 Replies
View Related
May 19, 2011
I'm trying to implement a show/hide toggle for each users profile field in the view body topic of my forum.
I found this thread here @ sitepoint which is close to what I'm working on, but the code I'm working with is different.
What I need are some changes to the JS so that each show/hide works independently, not just the first instance of the show/hide.
How do you call this HTML
Code:
With this JS to be independent?
Code:
I know that this would have bits of " $(function() and $(this) " but that's about all I know...
View 8 Replies
View Related
Aug 24, 2006
I have a site in Dutch and (a translation) in English, say www.dutch.nl and www.english.nl. A Dutch site, say www.fools.nl, has a link to www.english.nl. I want this to be changed into www.dutch.nl, but the site never updates. How can I inmediately redirect the visitors of www.fools.nl to www.dutch.nl, without using php.
View 2 Replies
View Related
Aug 23, 2011
Im developing a site for my company that will contain relevant information on sites we serve (such as login details, passwords, addresses etc). It is available locally on our intranet due to the fact we have login details and such.
Anyway on the sidebar of my site (which is run on Wordpress), I have all the sections for the sites.
When a user clicks item #1, it expands and shows all the sites in that area.
The one problem is that when the sections are clicked on, they just expand in a very plain boring way.
I need it so that there is some sort of smooth transition between opening and closing the <div> sections.
Here is the current code I have now (I tried to edit as much of the comments as possible so it will make sense):
<script>
I found it on google, and modified it without having to change anything on the sidebar itself, just a simple paste to the head section.
This code also hides other currently open sections, so that only one may stay open at a time.
View 1 Replies
View Related
Oct 15, 2009
I found an issue with using embed code and jquery's show()/hide () method. I am using embed code inside of a div. So it looks something like this:
<div id="test">
<embed>
whatever here
</embed>
</div>
Now on that I want a user to be able to click a button to show/hide the content. So I create a function like this:
<script type="text/javascript">
function showEmbed(){
if($("#test").show()){
$("#test").hide();
} else {
$("#test").show();
}}
</script>
I then binded that to just a basic text link:
<a href="javascript:void(0);" onclick="showEmbed();">show/hide</a>
Now that works fine as far as showing/hiding the embed code. However, there is one issue with this. When I click the link it reloads the data. I do not want it to reload the data. Say for instance there is a video playing in there. If you click the link it will stop the video
and when you click it again to show it will start again. How to get it not to reload the data.
View 9 Replies
View Related