Is There Anyway To Make Decisions In Htaccess.
Nov 23, 2005
Is there any capability of decisions in htaccess. I know you can use
[or] in special situations, but I need something like:
If a then b etc like in php.
In other words I want to redirect the visitor to one of many pages via
the htaccess file.
Is there anyway to open a file and have a redirect to a different web
page based on an input from a text file as below:
Open file and make a random selection from a large number .htm files
and append it to the RewriteRule below. Code:
View 5 Replies
ADVERTISEMENT
Oct 5, 2007
I am writing a script that uses xmlhttp.open, when i attempt to open a protected page I get the login prompt for my htpasswd. Is it possible to detect if there is a login requirement before the login prompt and if there is a login just do something else? I can use xmlhttp.status and check for 200 but if I do this then it would happen after the login prompt.
View 1 Replies
View Related
May 29, 2001
I want to use htaccess for entry to protected pages, but for a large group of users. Is there a way to change the color of the popup box to blend with the site?
View 2 Replies
View Related
Apr 7, 2010
So my htaccess file has this:
when I go to:
My javascript stops working. I can't even run an alert() statement.
However, when I go to [url]everything works. why is that?
View 13 Replies
View Related
Jan 27, 2010
My objective is to make a map that lets the user click the map to make a pin and write a description. Like this [URL]
View 13 Replies
View Related
Dec 8, 2011
I have several classes named 'ratings_colored'. They all contain a number from 1 to 10. If the number is below 5.5, the number should become red. If not it should become green.
The code below works, but if the first .ratings_colored is higher than 5.5 it will make ALL the classes green. Even the numbers below 5.5! I tried using the 'this' but it didn't work either.
$(document).ready(function () {
View 2 Replies
View Related
Dec 2, 2009
How Can i take this to make a default empty value and force users to make a decision?
<select id="preservetitletest"
name="titletest"
dojoType="$testWidget"
style="width:50%;font-family:Courier;"
[Code]....
View 1 Replies
View Related
Mar 4, 2010
so I have a button that makes a table appear absolutely(dynamically), and I was wondering how would I go about making it disappear once I made it appear.
View 3 Replies
View Related
Jul 20, 2005
Does anybody know how i make a script to make a poll? I mean a small poll
when you can choose yes or no?
View 4 Replies
View Related
May 4, 2011
I am trying to make changes (add/remove nodes, insert text) to an XML file using JavaScript. So far I can display the content of the XML file, but when I try to add/remove nodes it does not seem to work. Here is my code for adding nodes(just followed an example from w3s):
[Code]...
View 3 Replies
View Related
May 20, 2010
i have some mysql articles and i would like to change the title when it displayed on the page by clicking on the h3 tag i have got the articles displaying on a while loop so i need something that would work with that i was thing of somehow changing the h3 tag to a input tag
View 3 Replies
View Related
Feb 15, 2009
I've got this prototype funtion
function makeEditable(id){
Event.observe(id, 'click', function(){edit($(id))}, false);
Event.observe(id, 'mouseover', function(){showAsEditable($(id))}, false);
Event.observe(id, 'mouseout', function(){showAsEditable($(id), true)}, false);
}
that make editable a <p id=xxx> with an speial id I want to modify it to makeditable any of <p> with that id if it's been clicked and also i use this function on a button how I can avoid this function from multiple executing by multiple clicking by user?
View 7 Replies
View Related
Feb 20, 2009
I have a function that opens a popup and I have told it not make the popup resizable but all browsers seem to ignore it and make it resizable anyway. This is the code
function openflvpopup(popurl){
window.open('FLV/play.php?file=' + popurl + '.flv', '', 'height=500px,width=550px,left=150px,top=150px,resizable=0')
}
I have probably made a silly mistake but I have checked several tutorial website to make sure I write it in the syntax that they do. I can not see any mistakes.
View 2 Replies
View Related
Mar 23, 2009
I'm trying to make an 'on' 'off' switch
the idea is for imgA to 'toggle' with imgB onMouseDown (onclick is used to call a function)
I can get the image to swap once but not back again. I have no idea if the way i'm attempting it is even close.
<script type="text/javascript">
function imgswap(){
if ( )
{
[Code]....
View 8 Replies
View Related
Jul 2, 2009
The issue I am having is how to modify the following html/javascript to show only rows that do not have a certain value. For example I have 2 rows with the following values:
Row1Column1 Row1Column2 Row1Column3
Row2Column1 Row2Column2 Row2Column3
But I do not want display any row when a value in Column3 equals
Row2Column3. Therefore in this example I will display Row1 but not Row2. The following code displays a table of rows and is running in a servlet container using tomcat, hence the predefined tags of ${.....}. I know this forum is not for server-side programming but this issue really a html and javascript issue. The issue I would liked answered is how to modify the html/javascript so when a ${wfinfo_task_role} value of "cdm" is be displayed then the row will not be displayed in the table.
[Code]...
View 1 Replies
View Related
Mar 16, 2010
I have a Java script chat,
How would I make a scroll bar for it?
Does any one have any code for that? or do you know what I have to do?
View 2 Replies
View Related
Jul 11, 2010
I have a script that clicks links how can i make it not click a certain. Such as how to make it don't click red link or don't click bold links. code...
View 8 Replies
View Related
Nov 4, 2010
Is there Java Script to show only the Comment and Markup tool bar in a pdf document? I have the toolbars hidden on initial view, but I need to be able to make it so that one toolbar appears. I have figured out how to make all toolbars re-appear, but I don't want users to be able to do that (at least not easily).
View 3 Replies
View Related
Mar 20, 2011
I cannot run this script in ssh (file transfer). code...
View 1 Replies
View Related
Mar 25, 2011
I'm trying to make a calculator app; with a few differences. I have a text field with a numberpad below it, I got the numbers to show up in the text field, but am unsure as to how when I hit the enter button - it would store them in a variable?...I am also wondering as to how it would store current value and then allow me to input another value(maybe on the next page) and either subtract or add to it(the first value that is stored).I am also wondering how to get a decimal point in place(need it for currency).
Here is my code:
<html>
<head>
<script type = "text/javascript">
[code].....
View 10 Replies
View Related
Jan 24, 2006
<script language="JavaScript">
<!-- Begin
var msg="I am flashing!";
var speed=300;
var visible=0;
function Flash() {
if (visible = 0) {
window.status=msg;
visible=1;
} else {
window.status=" ";
visible=0;:confused:
}
setTimeout('Flash()', speed);
}
// End -->
</script>
View 1 Replies
View Related
Feb 19, 2009
I have a simple calculator written using javascript and html. I would like to make it such that when a link to the calculator is clicked, a pop up window with this calculator appears rather than referring a user to anew page.
View 2 Replies
View Related
Jun 22, 2010
I want to make a sms system, where users can send a sms message and then it is showed.So for every new message I get I need to make a new div, add it and scroll the others down
View 9 Replies
View Related
Oct 22, 2007
I have taken the following code from youtube. As it is, without the function wrapper, it work in the address bar, tho I would like to modify it and call it to operate in one of my own pages.
View 5 Replies
View Related
Oct 30, 2011
<html>
Why the insert the message box is not appear when all the 3 text file is empty?
View 1 Replies
View Related
May 31, 2009
What is a callback function and how do we make and use them?
View 3 Replies
View Related