I have a jqGrid on a page and users can click a button to add a new row. If there are already enough rows on the page to fill the visible portion of the grid the new row is added and a scroll bar appears but the user needs to scroll to see the new row.
Is there a way to do this programmatically?
...
I'm trying to implement a Facebook Connect Single Sign-on site. I originally just had a Connect button (<fb:login-button>), which the user had to click every time they wanted to sign in. I now have the auto login and logout features working. That is, my site will detect a logged-in Facebook account and automatically authenticate them if ...
Hey all i am in need of some help trying to figure out how to pass a string into an array field for a chart. The chart i am using is this [http://www.highcharts.com/]
Here is the chart code:
function drawChart(theDATA)
{
var chart = new Highcharts.Chart({
chart: {renderTo: 'container',defaultSeriesType: 'column...
Hi all:
This is uni homework so sorry about :my password protected url
Please enter usersame as "uts" and password as "10479475", without the wrapper quotes.
It it almost completed, please follow simple steps to see where my problem dwells:
(preferably using Firefox, no IE6 welcomed :))
step1: click on any continent highlighted on w...
I'm using this library: jsinq.
I want to create a new object using subqueries. For example, in .NET LINQ, I could do something like this:
from a in Attendances
where a.SomeProperty = SomeValue
select new {
.Property1 = a.Property1,
.Property2 = a.Property2,
.Property3 = (from p in People
where p.SomePrope...
Hi, I have a php script that uses some css/javascript tabs, they work on my local server but not when i upload to my online server.
Just wondering if anyone knows why this might be the case? All the paths are correct, its basically an identical setup.
I would be grateful to find out some reasons why the error appears on the server side...
in v2:
point = map.fromContainerPixelToLatLng(new GLatLng(x,y));}
in v3 i do this:
point = map.MapCanvasProjection.fromContainerPixelToLatLng(new LatLng(x,y));
and error..
how to do this?
thanks
...
Hi there, to start off, I know C++, C#, Python, some Ruby, and basic Javascript. Anyway, my question revolves around how to interact with RESTful API's via Javascript. I haven't been able to find any good examples on various websites, and so I've come here.
So my basic question is: How do I interact with RESTful API's via JS? And where...
Does anyone know if it is possible with javascript to to tell the position of a mouse click in some text? I know it's easy to get the x,y coordinates, but I'm wanting the position in the text.
For example if I clicked inside <p>foo bar</p>
I want to be able to tell that the click was on/after the 5th character. Or that foo b is before t...
EDIT: Ok, thanks for your help guys. Using zerkms' suggestion, I have managed to get <br> tags inserted instead of carriage returns, so it is displayed properly on the page and doesn't break the javascript. The problem is now that when the user clicks on this text, it becomes a textarea and is therefore inline editable. However, the text...
I am trying to call a webservice using javascript.But it shows an error like
selectSingleNode() is not a method.I am trying it in mozilla firefox.Which is perfectly working in explorer when i change XMLHttpRequest to ActiveXObject.here i am adding my source code which i am tried in firefox.
<script language="javascript">
// Web Service...
I'm confused on what the difference is between Progressive Enhancement and Graceful Degradation. To me they seem like the same thing.
Can you please explain to me the differences between the two and in which situation I would use one over the other?
...
Hi,
Please help!
I have some form elements in a div on a page:
<div id="box">
<div id="template">
<div>
<label for="username">Username</label>
<input type="text" class="username" name="username[]" value="" / >
<label for="hostname">hostname</label>
<input type="text" name="hostname[]" value="">
...
I have a gridview with certain number of columns and the ID column where I want to get the value from is currently set to visible = false. The other column is a TemplateField column (LinkButton) and as the user clicks on the button it will grab the value from the ID column and pass the value to one of my javascript function.
WebForm:
<...
Alright, I'm at my wit's end on this issue.
First, backstory. I'm working on a video management system where we're allowing users, when adding new content, to upload and, optionally, transcode a media file. We're using Java applet for the browser-based FTP client.
What I want to do is allow a user to initiate an upload and then send th...
I have an HTML (App) file that reads another HTML (data) file via jQuery.ajax(). It then finds specific tags in the data HTML file and uses text within the tags to display sort-of tool tips.
Here's the App HTML file:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional....
I have a google map on my asp.net page. on which its showing image(marker) on cityname .
please tell me how can i fire event onclick on that marker.
...
Hello, im trying to make a small name summary function depending on the size of the elements container, here's what I have;
function shorten_text(str, size){
size = size.match( /[0-9]*/ );
var endValue = Math.floor( Number(size) / 10 );
var number;
var newStr;
for ( number = 0; number <= endValue; number++ ) {
...
I have a Site.Master in my ASP.NET project which defines a HEAD section as follows
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title id="MasterTitle">MyApp</title>
<link rel="icon" href="Content/icon.ico" type="image/x-icon" />
<link href="Content/mycss.css" rel="styl...
Hi,
I wanted to create one js file which includes every js files to attach them to the head tag where it is.
But i am getting this error
Microsoft JScript runtime error: Object expected
this is my code:
var baseUrl = document.location.protocol + "//" + document.location.host + '/yabant/';
// To find root path with virtual director...