CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 12/3/2003 7:40:41 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
pmuadib
Asp.Net User
Java script errors due to out of scope syntax in custom usercontrol12/3/2003 7:40:41 PM

0/0

Here it goes. I have a cutom user control "missingKey" that in included on the defult page via

<%@ Register tagprefix="custom" Tagname="missingKeyReport" Src="./components/missingKeyReport.ascx" %>

the problem is if I attach a AutoPostback to a dropdown in that control the page itself generates a javascript error " a ";" was expected"

I looked through source and found this to be the problem

function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["missingKeyreport:controlForm"];
}
else {
-------> (the colon between missingKeyreport and controlform is causing the error)
-------> theform = document.missingKeyreport:controlForm;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}

now I realize this is the syntax for the scope of the control but JS cant handle the colon. The missingKeyreport:controlForm is what is the generated name of the control. I changed the code to use the ID of the control (missingkeyreport_locBox) and it worked but obviously thats no real use because I cant parse and edit the runtime output. Im totally stuck and how to force the postback any other way. and I need the postback to populate other lists based on selection. HELP!!!!!
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
BorderLayout scope issues depending on Javascript OO Syntax - Ext ... Then, there are two flavors of Javascript I use for the custom piece. ... the document object is out of scope because document.body is null. ...
EggHeadCafe - .NET Developer Portal of Choice cannot assign variable using public static string - out of scope 25-Oct-08 Go ... i got javascript error?how to solve? 24-Oct-08 Go ...
MJJames - Web Developer: February 2008 if left the control defaults to the /javascript/ It is worth noting that the control expects you to host ... Build failed due to validation errors in. dbml ...
Inline Script inside an ASP.NET AJAX UpdatePanel - Infinities Loop I want to place inline html between custom asp.net user control tags ..... Are you sure there's no javascript error occuring when you click the buttons? ...
The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks ... Java LiveConnect module, (Communicating Between JavaScript and Flash) ...... ( Understanding Scope); inner scopes, (Making a Drop-down or Fly-out Menu) ...
Nikhil Kothari's Weblog : Script# To this regard I don't remember when I've written custom javascript last... ...... out all the details just yet (and am sorry about that), but in due time I ...
.NET ASP Page 78 - Bytes Site Map NET 2.0 : compile error : Could not find schema information .... UserControl · Send Fax on client side using JavaScript · Unrecognized attribute 'xmlns'. ...
Udai@Technology This is because WSS emits submit wrapping javascript that tampers with how ... NET UserControls(.ascx) declared in custom aspx pages into MOSS 2007 sites ...
Asp.Net - Quickduck To do that, I used prototype.js - a javascript library with a whole bunch of ... ItemIndex < 0) { return; } // custom logic }. Today however, I found out ...
MOSS 2007 Custom Search - Sezai's MOSS 2007 blog Query namespace in a custom Web Part or User Control and add it to your .... do not appear to work with javascript disabled - a requirement for my client. ...




Search This Site:










removing node from dynamically created tree

hosting with sms

keeping a connection object in viewstate?

properties and methods not recognised

objects methods

hosting database folder - too many options?

losing input from controls on postback

capture mouse click on htmlinputimage on the server control

need hosting for a photo app

server control problem

asp.net hosting multiple domains

long term hosting recommendation

children show up after getdesigntimehtml()

cellsetgrid: asp.net control for analysis services

drop down control that allows editing

where to store page-related data?

getting the year in a contol?

<summary> in vb.net?

property question

why do controls which require postback get stored in viewstate?

fileupload control....

postback displeasures

does any boby know asp.net 1.1, ms sql server 2k, speechsdk hosting?

vsnet ate my code!

datagrid web ocntrol

extending the textbox control

customizing the asp.net 2.0 wizard control

hosting with mssql 2005 reporting service?

visual studio components development

how to raise datachanged events on a custom control, not post back

  Privacy | Contact Us
All Times Are GMT