How To Set Location In Textarea
Jun 16, 2011
I have 21 lines in a textarea visible and there are over a thousand lines in it. If my script finds something for the user in line 520, is there a way to set the scrollbar so only lines 510-530 are initially visible?
View 2 Replies
ADVERTISEMENT
Mar 6, 2010
have an image that when a user clicks, a textarea should show up at the click. I specify textarea style top and left in javascript. On Firefox this works fine, but in Internet Explorer (IE) the textarea is created right before the image instead of on top of the image. It is like that it just ignored the top and left positions.Also, users can query the database to show all the (mouse clicked) textareas that were created on the image. I coded this using PHP and a bunch of echo's. For some reason, the PHP code works with the CSS styles top and left specified meaning the textareas show up fine on top of the image. But creating a brand new textarea with a mouse click in javascript is not working.Here is the javascript (does not work in IE, works in FF):
function createTextArea(e){
getMouseCoords(e);//sets posy, posx
var newDiv= document.createElement("textarea");
[code]....
View 5 Replies
View Related
Feb 14, 2010
Danged if I can find the thread, but I swear I saw a $.url() reference in here a day or two ago. It was beingutilized for parsing out the window.location or window.location.search parameters. I made a mental note because that was something I would be needing to do.
Now I can't find it, either because the search isn't finding it or I was dreaming about this function existing.
I rummaged about the API docs and didn't find it there either. Is it something provided by one of the plugins and not a function native to jQuery?
View 3 Replies
View Related
May 13, 2011
How would i change back to the default length of textarea?
I have this comment area that after clicking submit i will append the new comment in the list of comments through ajax... i got one problem though, everything is working perfectly well except for the textarea that won't change back to it's default size...
EXAMPLE:
The problem is that the textareawon't change back to it's default size // let's say that the default size is rows=3
View 2 Replies
View Related
Nov 5, 2009
I've been trying to fix this.
Code below:
View 11 Replies
View Related
Jul 23, 2005
I'm creating a pop-up (it's a timer for hotel guest broadband access) with
all attributes turned off. But becasue I have location set to 0 the damn url
keeps appearing in the title bar. This causes a major problem as the pop-up
displays a countdown in the titlebar that the user should be able to see
even when minimised and at present cannot because the url takes up all the
room. Code:
View 1 Replies
View Related
Jul 23, 2005
I've got a simple navigation system set up in a framed site:
navigation/top frame and a main body frame. Whenever you click on a
navigation button it passes the new location to this function:
gotoNewPage = function(loc) {
main.location.replace(loc);
// alert(loc);
}
which changes the page loaded in the main frame. This seems to work well
until I put a link in the page in the main frame, say:
<a href="#" onclick="top.gotoNewPage(Ƈ_7.htm')">Click me</a>
In IE the page changes to Ƈ.7.htm'.
In FF (and MZ) the page "flashes" but doesn't change.
If I uncomment the alert the page changes.
If I put the link in the nav frame the page changes in FF.
How can I get FF to behave in this instance?
View 1 Replies
View Related
Jul 23, 2005
Here is my relevant code for an arbitrary page (let's call it PAGE_B):
<body onload="window.location.hash='anchor'">
With this code, if the user goes from PAGE_A to PAGE_B, he will jump to
PAGE_B#anchor after PAGE_B has fully loaded. BUT... if he clicks the
back button, instead of returning to PAGE_A (which is what I want), he
will return to PAGE_B (without the anchor).
Is there any way to change this behavior... perhaps to replace the
anchor of page without touching the history stack?
View 1 Replies
View Related
Oct 3, 2005
for some reason, when I do this...
var email= prompt("Enter the email address you want to send the test
to:","");
it's opening the prompt window in the top left of the screen. How can I
put it in the center?
View 5 Replies
View Related
Oct 16, 2006
I am creating a "Please wait..." page to show a friendly message to my
site users while the data is being loaded. I am using
location.replace() javascript function to do this.
The problem that I am facing is displaying the records that the
application has already processed on the wait page. Does anybody know
what can I do to pass data field value from the end page where the data
processing is going in background on to the wait page.
View 5 Replies
View Related
Jul 15, 2011
I'm trying to create a "moving" side menu div.
Thus far I have it all setup in terms of the divs:
[url]
The setup is :
..then right_sidebar gets made the same height automatically as main_contents. I've color coded them to hopefully make it easier to see whats going on.
The code I'm using is:
As far as I can see its calling the right codes... yet it never seems to move #side_ads.
I'm aware there are plugins that do the same job - but I wanna try and avoid that if possible, as I'm pretty sure this should be simple to do - I must just be missing something.
View 1 Replies
View Related
Apr 1, 2010
i m working a web app in which i wanna remove the address bar after login. i created a function in which i said location=no but still i see the address bar. is there any other object to disable it? or am i doing it wrong
View 13 Replies
View Related
Mar 21, 2004
I am using Internet Explorer, and I am creating a navigation bar that will take place for the one in the normal. It is in a frame, whick is my homepage. I have an address bar, and when you click go, or enter, the bottom half goes to that page. If you click a link on that page however, the URL in the address bar does not change. Is there a way that it can update itself with the URL of the other frame?
View 2 Replies
View Related
Aug 30, 2005
how can i change the text into the location bar without reload or go to this new url?
View 2 Replies
View Related
Jan 22, 2006
I have a script that displays the system time as the date but is there one that also displays the system location? For example "Location: Poland , Date: Sunday January 22, 2006" or "Location: Russia, Date: Sunday January 22, 2006"
View 1 Replies
View Related
Feb 17, 2006
I have a couple of links of which I change location.href for tracking purposes.
The problem is that the links now no longer seem to open in a new window (which was accomplished using target="_blank")
Is this an error on my part or is this by design? Is there a workaround? I would prefer not to use window.open as that could get blocked by a popup blocker.
View 3 Replies
View Related
Jun 28, 2002
or is it window.location?
anyway, why doesn't this work?
Any ideas why this doesn't work?
<script language="javascript">
function goclaims()
{
document.location.replace = "../webapplication2/webform1.aspx";
}
</script>
<asp:ImageButton onlick="goclaims();" id="Image5" onmouseover="this.className='applyBorder'" onmouseout="this.className='removeBorder'" runat="server" Width="24px" Height="18px" ImageUrl="file:///C:Documents and SettingsgregbDesktopiconsClaims.ico" CssClass="removeBorder"></asp:ImageButton>
View 3 Replies
View Related
Mar 28, 2011
I try to get a value from anotherweb-page but i always encounter an exception not allowed by Access-Control-Allow-Origin.
This is my code-snip
Code:
if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
[code]....
View 2 Replies
View Related
Nov 9, 2010
I am working on my website and am having trouble with the navigation bar. I am using Javascript to write innerHTML and if statements for finding what page I am on. Currently I am trying to figure out how to find out the document name so i could do something like:
[Code]...
View 2 Replies
View Related
Jul 23, 2005
I'm passing the asp parameters using the url current page is files.asp and I'm using window.location.href=files.asp?action=deletefile to pass the action to the serverside
My code never got executed (like the page was cached) unless i put document.write("") before the window.location directive.
Here's the code:
function confirmDelete(x){
var potvrda=confirm("Kliknite OK za brisanje. Cancel za povratak.");
if (potvrda==true) {
trans="files.asp?action="+x;
document.write("")
window.location.href=trans;
}
else {}
}
View 9 Replies
View Related
Jul 23, 2005
I have a footer that is appended to all of my web pages as an include. The
pages are different lengths of course so that location of the div in pixels
from the top of the page changes with each page. I need to access the
location of a div within this footer for reasons I won't go into. The footer
may of may not be nested inside other absolute divs, depending on the page.
This:
var obj = document.getElementById('BottomMenuDiv');
var xlocation = parseInt(obj.offsetLeft);
var ylocation = parseInt(obj.offsetTop);
will give me the location of the div inside it's parent div. I would like to
do something like this:
while (obj.parent)
{
obj = obj.parent;
xlocation = xlocation + parseInt(obj.offsetLeft);
ylocation = ylocation + parseInt(obj.offsetTop);
}
to go all the way to the top of the page. (Or is there some way to get the
divs absolute position without going through it's parents?) What would be
the syntax to do this?
View 3 Replies
View Related
Jul 23, 2005
I'm trying to use the onload event to load a series of urls.
What I find is that the onload function is only called one time
no matter how large the array. Here is the onload function.
var next_win = 0;
var win = window.open("", "", "");
function nextWin() {
if (next_win < urls.length) {
win.
win.location.href=urls[next_win++];
}}
Is this correct behavior?
View 10 Replies
View Related
Jul 23, 2005
<script language="javascript">
function ConfirmPage() {
window.location.href="http://ConfirmationPage.htm";
return false;
}
</script>
How can I use this script to display a page in my current directory? It woriks fine when using a domain such as yahoo.com or google.com.
View 3 Replies
View Related
Jul 23, 2005
i have the following script:
function subCat(){
var d = document.all;
var i = d.sid.value;
if(i != "-1"){
window.location = "subcat.php?sid="+i;
}
}
That is called on the following drop down menu:
<select name="sid" class="dropBox" id="sid" onChange="javascript:subCat()">
<option value="-1">Please Select</option>
<option value="1">category 1</option>
<option value="2">category 2</option>
<option value="3">category 3</option>
<option value="4">category 4</option>
</select>
It works fine in IE but not in Mozilla Firefox, what do i need to chnage to
make it work correctly?
View 2 Replies
View Related
Jul 23, 2005
I'm working on a page that uses javascript very much. My problem is now
that i cannot redirect to another page in IE with window.location =<URL>;
This command gets executed (proofed with alert messages) but nothing
happens. FF acts like expected but i cant get it work in IE. What can be
the problem here?
here the code i use:
this.NodeSelected = function( node ) {
if ( node.Value != null && node.Value != "" ) {
window.location = node.Value;
}
}
View 3 Replies
View Related
Oct 5, 2005
i have a really stupid problem with this line of code:
location.href = "showreport.php?id=" + sText;
sText is an id of a job that's running on the server.
Showreport.php retrieves the job and outputs the result in HTML. At the same
time job is removed from the server.
What happens is that some browsers (IE 6 mostly) like to GET the
showreport.php TWICE. Of course the second time there is no job any more and
the result returned is of zero length, which is very unpleasant ;-)
Headers sent by the browsers are (1st call):
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Accept-Language: sl
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322)
Host: veliswork
Connection: Keep-Alive
Cookie: PHPSESSID=tsghl22ijg4f6ba7a2mthggun6
Headers sent by the browsers are (2nd call):
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322)
Host: veliswork
Connection: Keep-Alive
Cookie: PHPSESSID=tsghl22ijg4f6ba7a2mthggun6
Note the Accept tag.
What's even more interesting, the accept tag of IE 6.0 that does not request
twice is:
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
Note the (still) absent application/pdf, which is the target content here.
Can somebody explain to me, why two calls and if that can be prevented. I
can reduce the problem by keeping the job for another minute or so, but
these jobs tend to be rather large (>10MB RAM usage) when large reports are
generated.
View 2 Replies
View Related