C# - Jquery Click Tracking Is Acting A Little Strage?

Apr 21, 2010

On some links on my HTML page I have a special CSS class, that when clicked, I make a ajax call to a click.aspx page and track the click.

<a href="..." class="click" id="blah-1">blah-1</a>


$(".click").bind("click", function() {[code]....

So what is happening is the value of source, after clicking a few links (that open in a new window) becomes:

source=blah1
then it becomes
source=blah1,blah2

View 1 Replies


Similar Messages:

Jquery - Hitwise Tracking On ImageButton Click Event In ASP

Jan 5, 2011

I have an ImageButton setup, where in the OnInit event, I'm setting the Click event

btnJoinNow.Click += new ImageClickEventHandler(btnJoinNow_Click);

On the client-side, I have setup a jQuery click event which is to fire of a hitwise tracking event only when the button is pressed. The problem I'm having is that it seems that the button event is beating the javascript and not tracking. I need to put a pause of 1 sec before the imagebutton event fires server-side. I've tried the following, but always fires. I've also tried e.preventDefault(), but that just stops the postback altogether.

$("input[id$='btnJoinNow']").click(function(e) {
Spots.HitWise();
setTimeout(function(){
}, 5000);
});

EDIT: The only way I could get this to work, was by doing the following:

$("input[id$='btnJoinNow']").click(function(e) {
Spots.HitWise();
setTimeout(function(){
$("input[id$='btnJoinNow']").unbind('click').bind('click', function(e){});
}, 1000);
return false;
});

This then allows enough time for the HitWise event to track, then clears the click event and calls itself again.

View 1 Replies

C# - Radio Buttons Are Not Acting As A Group

Jan 13, 2011

I am using Radio buttons inside a panel in a web page. (Since group boxes are not there). But when I click on each radio button they all are checked. They are not acting as a group but single units.

View 3 Replies

ExtJs Grid Acting Very Strange

Oct 18, 2010

So I have two pictures of the weirdness that is occuring.As you can see in the picture above, the scroll bar on the right hand side is being cut off a little bit by the screen, and even when you scroll to the right, you don't get the bar back, it remains cut off.

Here is the other scenario:

Here, you can see that when I scroll down in this grid, the scroll bar kind of fits into the bottom of the grid and doesn't even go all the way down. You need to manually click into the grid and hit the down arrow to get the rest of the way down.

Edit: Here is the code to generate the grid (Ext created through VB controls):

Dim VehicleOptionsGrid As New Akcelerant.Framework.WebControls.Grids.Grid
With VehicleOptionsGrid
.ID = "VehicleOptionsGrid"[code].....

View 1 Replies

Jquery - Anchor Click Triggers Parent Click Only In IE (Ajax Toolkit Accordion)?

Feb 4, 2011

I have the following inside of my Header Template of an Ajax Accordion:

[code]....

I need this to work without JS as well, which is why I still generate the HREF on the links, so I'm just intercepting the click and then invoking the parent click which in turn toggles the accordion header.

This works in IE but no Firefox, Chrome.

View 1 Replies

Forms Data Controls :: Two More GridViews Acting On Each Other

Mar 28, 2011

I have a couple grid views one for Team Goals and one for Indicators for the Goals I want to be able to click on an indicator and it highlight the Goal in the other grid view both on the same page. I also want to be able to click one of the indicators and open a entry screen I assume for that I use the select portion of the control?

View 2 Replies

Master Page Acting Wired On Different Pages

Aug 26, 2010

I applied this master page to two files..one inside the same folder(file1.aspx) as the master page..another outside(file2.aspx)..master page is applying alright to file2.aspx BUT not completely..a TD's bgcolor is missing..and ONLY that..why so TH files got no code of their own yet..just the application of the master pag

View 1 Replies

ADO.NET :: After Domain Changed TransactionScope Acting Wierd?

Feb 18, 2011

I m using transactionscope and there was no problem until my domain changed.When it hits the scope7, it inserts the data and starts all over again and inserts for the second time.

Here is my sample code:

Using scope7 = New TransactionScope(TransactionScopeOption.RequiresNew)
Dim comm As New Data.SqlClient.SqlCommand("INSERT INTO ABC (ID, AID, Type) VALUES (@ID, @AID, @Type)", conn)
comm.Parameters.AddWithValue("@ID", TaskID)
comm.Parameters.AddWithValue("@AID", FormID)
comm.Parameters.AddWithValue("@Type", FormType)
conn.Open()
comm.ExecuteNonQuery()
scope7.Complete()

View 1 Replies

C# - LINQ2Entity Framework Query Acting Strange?

Feb 20, 2011

I have strange problem with my query. I have two almost identical situations in which one query is acting as it should be while the other gives errors.

var osobaIme = (from o in db.osobas
orderby o.osoba_ime
select o.osoba_ime).ToList().Distinct();

[code]...

View 2 Replies

JQuery :: Link Button OnClick Event Does Not Fire On First Click After Jquery Drag And Drop?

Dec 24, 2010

I have a link button in a repeater control. the li element is drag and droppable using jquery. when the page loads the the link button works perfectly, the jquery that is attached and the server side code both execute. when I perform a drag and drop then click on the link button it doesnt not fire. when i click it a second time it does fire. If i perform 2 or drag and drops in a row the link button doesnt fire a as many drag adn drops as i before it will fire. for example if if perform 3 drag and drops then it will take about 3 click before the events are fired.

[Code]....

View 4 Replies

JQuery :: How To Table Row Click Row Color Change In Jquery

Oct 13, 2010

how to table row click row color change in jquery

i have two row

[code]....

when i click in Second row than Second row color is red and (2) green

when i click in First row than First row color is red and (2) green

View 7 Replies

JQuery :: Can't Select Current Jquery-ui Tab On A Button Click

Jan 22, 2011

I am new to Jquery and having trouble using ui-tab control. Thanks for helpI am able to initialize to tab 4 on page load.If I select a different tab and then click the edt button I want the new tab to remain selected. What actually happens is that tab 4. gets re-selected.

Protected Sub btnEdit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnEdit.Click
Session("DealSheetMode") = "Edit"
ManageVisibility(Session("DealSheetMode"))
PopulateEditPanels()
Page.ClientScript.RegisterClientScriptBlock(GetType(Page), "TabScript1", "SelectTab();", True)
[code]...

View 6 Replies

Force JQuery Click Event To Proceed Any Control Click Event On Page?

Mar 22, 2010

I've found posts about making a click event with jQuery for a button, however I need a little more then that. When any postback occurs on a page, I need to fire off a jQuery click event. Based on a condition, I want to continue processing (including running the server-side event code after the jQuery code), or, perform a redirect. I'm not quite sure how to go about this.

View 1 Replies

JQuery :: Checkbox Click Event Problems When Using JQuery Safari Checkbox Plugin?

Nov 26, 2010

my page are 1 checkbox and 1 hidden label and 1 hidden panel. With the help of forum member raghav_khunger I've managed to write the code which shows panel and label when checkBox is checked. I've also added the code which is checking on every page post back the status of checkbox and hide/show panel and label appropriately. This is working fine.However when I add jQuery Safari checkbox plugin [URL] problems appear.

Looks like the code which is handling click event is doing reverse thing: when panel and label should be hidden are shown. I can change this but then there would be problems because of the second part of the code which is checking checkbox on page load. So when I check the checkbox nothing happens. I must uncheck it and label and panel appears. But if panel is uncheck the label and panel would be hidden because on next page load (when user clicks button next).As I said before the same code is working fine and it's test in all browsers (IE,FF,O,S,C). Maybe there is problem with checkbox plugin since it's in beta version.

[Code]....

View 2 Replies

C# - ValidateRequest="false" Is Acting Wierd?

Apr 4, 2011

(ASP.NET 4.0 C#)

I have my <httpRuntime requestValidationMode="2.0" /> in the webconfig. AndI have my validateRequest="false" in page directories.On one page, I send some data (html) from a ckeditor (textarea) to a database. Works fine.On another page I fill the ckeditor with data from a database, then I update it (send it back), and I get the famous "A potentially dangerous Request.Form value was detected from the client."

Makes me very confused. The only difference is that on the second page the data gets dynamically inserted into the textarea, where on the first page the textarea is empty on pageload. Am i missing something here? Im pretty sure Encoding/decoding doesnt mean anything, as the framework stops it before I can even start messing with it on the backend.

View 2 Replies

MVC :: Bug Tracking System With Sourcecode Available?

Oct 9, 2010

I need a bug tracker software for our application development and sql script development (small 2-3 person team)...

I am new to asp.net MVC and thaught it would be nice if one was available built on the asp.net mvc platform and available with source code.

View 2 Replies

Bug Tracking In Visual Web Developer?

Apr 1, 2010

Is it possible to track bugs in a visual web developer website? I want to be able to step through the code so I can see exactly what it is doing but am not quite sure how to do this.

View 8 Replies

Getting Error While Tracking Datakey

Feb 19, 2011

i am getting this error while tracking my datakey.. i am not sure why my datakey index is coming out of range.. here is my code :

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
var dataKeys = GridView1.DataKeys[e.Row.RowIndex];
dataKeys.Value.ToString();
Label1.Text = "The key field value for the displayed record is " + dataKeys.Value.ToString();
}

Header Part Of the GridView:

</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"
/>
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<script language="javascript" type="text/javascript">
function viewProfile(selectedRowIndex, firstName) {
//alert(firstName);
//var customGridView = document.getElementById('<%= CustomGridView.ClientID %>');
var customGridView = document.getElementById('GridView1');
if (customGridView) {
var row = customGridView.rows[parseInt(selectedRowIndex) + 1];
//var cell = customGridView.rows[parseInt(selectedRowIndex) + 1].cells[0];
// alert(row.cells[0].innerHTML);
// alert(row.cells[1].innerHTML);
// alert(row.cells[2].innerHTML);
// alert(row.cells[3].innerHTML);
// alert(row.cells[4].innerHTML);
window.open('detatil.aspx?coaid=' + row.cells[1].innerHTML + '&fnomia=' + row.cells[2].innerHTML, "", "scrollbars=no,height=300,width=300");
}
}
</script>

The error is: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

View 1 Replies

Tracking Ip Address And Country Name?

Apr 19, 2010

Yesterday i saw a site in which, site is listing the ip address and country name, saying that recently visited members (a list of ip address with country name,city name). Can i know how can i track that information any reference or any code.

View 1 Replies

Web Forms :: Tracking The Clicks On Url?

Feb 9, 2010

<IMG
src="filepate of image"
alt="Click to view this company's profile" [code]...

Above is the html code. The code says it has a picture which has two links. Now can anyone tell me how can i track on the click on image for a perticular url. Using asp.net say url1. I need to store the clicks report into the database using vb.net.

View 2 Replies

Message Tracking On A Mobile Using ASP.net?

Oct 15, 2010

I have a ASP.Net wesite developed using c#, ASP.Net,Oracle and Ajax.I want to send an email to the user from HP Quality Center (QC) and get the result from the user and store it the Quality Center Defect.QC will automatically send the email.The user should be able to provide the result like (Yes/No) even from his mobile by accessing the email or a system.How can we keep track of the reply send by the user and using which method?I can take the help of my ASP.Net website to route the message.For Example, when the user send the reply,the website should be some how able to parse the email and store this into QC or database.

View 4 Replies

JQuery Onclient Click And DIV?

Nov 27, 2010

I am working with .net 4.0 and created gridview and formview on the same page now on the JQuery DOM I am writing code that to Formview DIV to display none and it working fine

[Code]....
DOM Ready Code

[Code]....

and on grid row bound I am binding onclient click event like this

[Code]....

But thing is that when I click on the gridview link FormView DIV is coming and it will go away and GridView DIV is not getting hide.

View 2 Replies

Tracking Old Uploaded Files On Web Server?

May 10, 2010

Users can upload files to the server, which are stored effectively forever.

A few of my ideas involve logging every upload, but then the files are usually referenced in html which isn't easy to track.

Files can sit unused but still be referenced. I could do a fuill text search on these, but that's pretty brute force.

View 1 Replies

Software For Tracking How Popular A Web Site?

Nov 2, 2010

Is there a (free!) software/components that I can use to track how my web site is being used - which pages are most popular, how many times was the site visitied today, yesterday etc...

View 3 Replies

SQL Server :: Tracking Statement On A Table?

Feb 12, 2011

I am using sql server 2005 on my local PC. I have the same copy of the database on a shared hosting environment.I need to transfer daily transaction on some tables in my local database to the remote database. My remote database ison the shared hosting environment so i don't have much control on it.

I want to capture all the DML statement on tables and then at the end of day will execute those DML statement on theremote database.Kindly suggest how can i trace DML statement on database tables.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved