Rewrite Ugly Url To User-Friendly Url
May 14, 2010
I have an html based website that needs urls converted from [URL] to [URL] the website has no mysql database. the urls are written through javascript. download from below the js + html files Code: [URL] urls writing rules can be found on common.js and set_form_menu.js.gz files
View 1 Replies
ADVERTISEMENT
Dec 22, 2003
We don't like putting our email addresses on our pages because we know we'll be spammed big time!
Of course you could use javascript and 'document.write' it out, but who wants script tags in his body? I don't!
So today I made the below and I thought I'd share. It kinda explains itself better then I ever could so. Code:
View 6 Replies
View Related
Mar 1, 2011
I run a math site and I just recently built a little program to generate math problems. When the user submits the correct answer the program changes the problem and all the steps/hints. Everything works fine except that during the change over there are all these weird blocks (same color as my background) (*FireFox Only). It only lasts for a couple of seconds, but it would be nicer if it smoothly replaced the problem. Here is the test site:
[URL]
writeProblem() is called when the user gets the right answer and asks for another problem:
var writeProblem = function(){
//these are neccessary after the first call to writeProblem.
$(".steps").hide();
[code]....
View 4 Replies
View Related
Jan 20, 2011
I want to install jQuery ScrollPane on my site(this one:[url])so I can use the scroll-pane plug-in to replace the ugly windows scrollbars.
Some simple questions:
If I want to use Google's jquery installation, is this all the code I need in my header?
Is there any way to easily test whether the jquery is installed correctly? i.e. a small piece of script that will tell you one way or another?
I found a few examples similar to this online:[url]
When I cut and paste the code onto my page it doesn't seem to do anything (I've either installed that wrong, or the google jquery link wrong, or both).
View 6 Replies
View Related
Jul 23, 2005
Is it possible to rewrite the URI shown in the browser "Address" bar
using JavaScript? That way, during a <form> POST, the "Address"
information could be captured too.
View 1 Replies
View Related
Feb 18, 2010
This is my JS validation:
Code:
if ((document.myform.e-newsletter[0].checked==false) && (document.myform.e-newsletter[1].checked==false))
{
alert("Please select whether to send the monthly email newsletter with the latest news and articles about diabetes care.")
[code]....
View 4 Replies
View Related
Aug 9, 2010
Is there anybody who can convert my function to jquery? It's a short function but I won't handle it by myself.
View 4 Replies
View Related
Aug 4, 2006
I have a print button in PHP page which using javascript
window.print() to print web page.
However , when user click "print" , the print preview display that the
page cut-off and alignment is out.
Read on regarding the matter , and found that is not the issue of PHP .
Some users recommend to me to use CSS and HTML to create printer
friendly page.
However my page is extension is in php , can i use CSS and HTML to
create printer friendly page?
View 2 Replies
View Related
May 6, 2010
trying to find a good rotating box with SEO content.[URL]
View 5 Replies
View Related
Jul 23, 2005
I'm having a problem rewriting a window with a popup I made. I'm using
Debian Woody with Mozilla 1.0. I can make the popups, but I cannot rewrite
the original window with the new information gathered from the popup. Can
someone please make some suggestions. I've got most of my information from
an old copy of the Rhino book.
View 1 Replies
View Related
Oct 26, 2011
At the end of my code below (9 lines up from thebottom) I have an image that fades in. I would like the sameimage to fade out after hover instead, but im unsure if this is possible due to the nature of my page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code]......
View 1 Replies
View Related
Apr 12, 2010
i wish the jquery community are looking here right now.
i have this existing code, which looks like this
Code:
$('selector').mousedown(function() {
do something here
}).draggable({
[Code]....
from there, with my limited experience, i failed to maintain the chaining. where do i chain the draggable (and the rest of the lot) event?
View 8 Replies
View Related
Jul 19, 2010
i have a form that uses javascript to clear/restore default values when the user clicks on or clicks out of the fields.
<input class="formInput" type="text" name="email" value="Email" onblur="if(this.value == '') this.value = 'Email';" onfocus="if(this.value == 'Email') this.value = '';"/>
and <textarea class="formInput" name="message" rows="8" cols="50" onblur="if(this.value == '') this.value = 'Message';" onfocus="if(this.value == 'Message') this.value = '';">Message
View 2 Replies
View Related
Jul 23, 2005
many framed sites have an ancient script in all their pages:
if(top==self) top.location=theframeset
Some friendlier ones do this:
if(top==self) document.write( '<a href=frameset>This page is '
+ 'supposed to be frames</a>.' )
These scripts fail when the page is loaded within somebody's else's
frameset.
Then top is not self but not a very cooperative top either. And with ever
growing security issues browsers have become quite paranoid. Even testing
for top's origin results in an error:
alert(top)
// gives me [object]
var s='' for (var i in top) s+=i+' '+top[i]+'
' alert(s);
var obj; try{ obj=top.location; } catch(e) { obj='' }
// give me [access denied] (of course)
I 'd rather drop the frames altogether, but the site has been like this for
years and the client insists. There are frames. So how would I detect when
it is appropriate to write:
<a href=>View this page in its <b>own</b> frames.</a> ?
Question b:
in the frameset, a little script looks into self.location.search for an url
with which to fill the main frame. Is there a way to avoid document.write
and onload?
View 5 Replies
View Related
May 11, 2010
I need to have certain links on my site appear to go one place for search engines:
<a href="http://example.com" ...
but go through an intermediate script to track clicks:
... onclick="window.location='http://example.org/track.php?id=112';">
I suppose that's easy enough, but, if the user doesn't have Javascript enabled, I'd like the click to still go through the tracking script.
View 2 Replies
View Related
Nov 7, 2001
Is anybody else having problems getting that code snippet to work?
<input type="text" value="Username" name="username"
onFocus="this.value=''" />
<input type="password" name="password"
style="background-image:url('password.gif');"
onFocus="this.style.background=#ffffff;" />
When the user clicks on the password form field, the background image is suppossed to be replaced with a white background color. All I get is a javascript error, and I copied straight out of the newsletter.
View 1 Replies
View Related
Oct 1, 2010
I have an application that produces a dynamic unordered list from DB categories table. The list is representing the hierarchy by adding a “..” (Double dot) in front of the list item name for each hierarchy level like so:
<ul id="categories">
<li>Cat1</li>
<li>..Cat1a</li>
<li>..Cat1b</li>
[Code].....
View 10 Replies
View Related
Sep 11, 2007
I am developing a site for a client that requires the printer friendly verison of the site to appear in a separate pop-up window. I am having trouble figuring out the scripting needed to have the current page open in a separate window with a different style sheet applied to it.
View 4 Replies
View Related
Oct 13, 2010
Here is my code that works flawlessly in IE but I can't get it to work in firefox. what firefox doesn't like about this code?
<SCRIPT language="JavaScript" type="text/javascript">
//POPULATE COMBO BOX PER RADIO BUTTON CHECKED
function UpdateCombo()
{
[code]...
Now, I obviously left unrelated code out here; but that code is the basic of what Im working with, but the combo box is just empty in firefox. Works fine in IE; so I'm guessing it doesn't like something with the code:
document.getElementById("technical_issue_summary").add(new Option("***Phone Issues***"," "));
View 5 Replies
View Related
Mar 11, 2010
I've added the most basic implementation of JQuery tabs. It's working fine so long as there's not a url-friendly query string.In other words, if I load index.php, it will work fine. Even index.php/anystring doesn't have any problems. However, if I try to load something such index.php/anystring1/anystring2, none of the CSS styles for the tabs appear to be applied to the tabs list making all the tabs' contents appear on the same page.how I can work around this to ensure I can preserve the current format of query string without breaking the tabs? Using the old fashioned way doesn't appear to result in any problems, but I'm trying to avoid having to revert to that format.
View 2 Replies
View Related
Jul 20, 2005
Is there a javascript or alternative default fill friendly way for counting down the remaining characters left in a form box?
View 2 Replies
View Related
Oct 5, 2009
Alright, this is going to sound strange, but bear with me here...
<input type="text" name="_F0827U" size="015" maxlength="015"> <input type="submit" class="cmdkey" name="_K040827" value="...">
Say I have multiple isntances that look similar to the above. However, I have no possible way of identifying them uniquely (because I don't know the name prior to generation).Is it posable,using JS, to snag the previous element and strip it of it's tags then rewrite a new element isntead of the two originals,say using an onClick() event on either of the elements?
View 3 Replies
View Related
Jul 24, 2010
I'm creating an AJAX user validation so that when a user types in a username, it checks it in the database to see if it exists. I want it to execute after the user finishes typing. I've tried using:
$("#username_field").keyup(function(){
which works, but I don't want a query executed every time the users presses a key. I was wondering if there was a better way to do it. Meaning I what the check to be preformed after the user finishes typing.
View 5 Replies
View Related
Oct 14, 2011
is it possible to track whether user is typing in the browser's address bar or aside google search box ( which appears in most of the browsers besides address bar)? if yes, I would like to know HOW? references are welcome.
View 4 Replies
View Related
Nov 28, 2010
I have to come up with a user authenication page the logs the user in and also gives them access to do the right things. I have attached the code and the access file and have got started on a few things.I first need to create a login page with the fields username and password have that check the access database and then proceed it to a page to do the following depending on the user access. For The Login button to even be enabled the username and password must have a value in it. I have no idea how to do that
Add A User [No duplicate Users]
Modify A User
Delete A User
[code]....
View 4 Replies
View Related
Dec 2, 2005
I have read all posts about how to detect that url have changed to new
page and trigger the event handler then eg.
function aidLogout(evt) {
if(evt) {
/* maybe via analyse of evt object i can detect the close of the
browser window */
}
if(window.event) {
/* maybe via analyse of window.event object i can detect the close of
the browser window */
}
var i = new Image();
i.src = "aidlogout.asp?uid=1562&SessionID=ABCDEFGHIJKLMNOP"
} /* assuming that aidlogout.asp will return nothing or empty image */
window.unload = aidLogout;
/* or via
if(window.addEventListener) {
window.addEventListener("unload", aidLogout, false);
} else
if(window.attachEvent) {
window.attachEvent("unload", aidLogout);
}
PS i know about super Gecko onclose event which fires when browser
window is closed, but i could not find such method in IE.
View 8 Replies
View Related