CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/3/2007 7:30:00 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Saavik
Asp.Net User
Error: object expected. What am I missing?4/3/2007 7:30:00 PM

0/0

I have a master page (main.master) which references a javascript file (script language="javascript" type="text/javascript" src="../js/tools.js")

A normal aspx page which is based on main.master is trying to reference a function in tools.js, but gets an error: object expected. Obviously, it cannot find the file tools.js. I even tried hard-coding the .js file location (/Project/js/tools.js) - no go.

Here is the file hierarchy:

/Project

main.master

/Folder1

page1.aspx

/Js

tools.js

What am I missing - I have spent several hours on this to no avail.Sad

Any help would be most appreciated.


Thank you,

================
Saavik
himawari
Asp.Net User
Re: Error: object expected. What am I missing?4/3/2007 8:49:46 PM

0/0

Hi,

Try using the ClientManager to register the script:

ClientScript.RegisterClientScriptInclude("common", ResolveUrl("~/js/tools.js"));
 Also, you can check your HTML output and see why the script wasn't registered properly.
Eric on Web Development
bullpit
Asp.Net User
Re: Error: object expected. What am I missing?4/3/2007 8:52:16 PM

0/0

Are you trying to use web control ids in the javascript function. This error may occur if your javascript function is not able to find the control id.

Can you post your function with any sensitive data removed?

good luck...

bullpit


[bullpit^-^]
Saavik
Asp.Net User
Re: Error: object expected. What am I missing?4/4/2007 3:07:43 AM

0/0

Thank you, himawari and bullpit.

 

I found the problem: the function within tools.js was called correctly, but the error WITHIN that function.  There was no indication whatsoever WHERE the error was.

Anyway, it is resolved.


Thank you,

================
Saavik
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Cross Creek Authors: Marjorie Kinnan Rawlings, Pages: 384, Published: 1996
8 Books in 1: Jane Austen's Complete Novels. Sense and Sensibility, Pride and Prejudice, Mansfield Park, Emma, Northanger Abbey, Persuasion, Lady Susan, and Love and Friendship Authors: Jane Austen, Pages: 808, Published: 2006

Web:
Error: object expected. What am I missing? - ASP.NET Forums A normal aspx page which is based on main.master is trying to reference a function in tools.js, but gets an error: object expected. ...
Another Error Object Expected ? - Javascript / DHTML / Ajax Forum I am getting the error object expected with the following code: ... and that cleared up the one error, but I am still missing something. ...
Weird Error: Object expected Weird Error: Object expected, Add this thread to My Favorites ... I am returning the function itself. It's not some missing object, is it? ...
Object Expected Error Line 89 and Line 126 and all is says is "Object Expected" I am totally clueless on what to do but here are the 2 lines of code. Am i missing ...
javascript error: Object expected - JavaScript javascript error: Object expected. Question posted by: Erik-Jan Bakker (Guest) on July 20th, 2005 11:41 AM. Hello, I am stuck with a weird javascript ...
Error: Object expected - Icrontic Forums Error: Object expected Web & Media. ... Reload this Page Error: Object expected .... A Christian Charity for Missing Children. ...
Javascript Error: Object Expected - Webmaster Forums - Webmaster ... Javascript error on nav(p): Object Expected I hate this error. ... represented.. . missing code. I haven't designed anything in frames in ...
XSIBlog » Blog Archive » Camera Projection Rendering Jun 12, 2007 ... June 14th, 2007 at 6:58 am. // ERROR : Object expected - [line 1] ... I’m certain I’m missing something very simple, but I don’t know what ...
xml/xsl/javascript - "error object expected" with onClick function ... I'm converting an html page to xml/xsl and I am having problems with the javascript. I'm getting Error object expected with an onClick call.
HTML & CSS - Object Expected Error | DreamInCode.net The problem is, I'm getting this stupid Object Expected error. ..... is giving me object expected. Can someone tell me what I am missing? ...

Videos:
Tengen Toppa Gurren Lagann(Episode 23 Joke subtitles) On the BSS and ANON fansub of this episode the normal subtitle track is included but it also includes a subtitle track titled, "Joke subs, for teh lo...
www.moldytoaster.com lanc and his daughter had just left their seat, and the daughter had taken her father's arm, and both were advancing slowly, towards the middle of th...
Charlie Rose - "World Trade Center" / Toni Collette Segment 1: A look at the film "World Trade Center" with director Oliver Stone, and stars Nicolas Cage and Michael Peña. Segment 2: Actor Toni Colle...
www.moldytoaster.com erbum sat_. I would have you be careful to _sort_ your pleasantries. Your soup jokes (never hazard that one about Marshal _Turenne_, it is really _t...
Marco Borrillo vs. Robert Bryant Jr. - Arizona Open Singles RR - Table Tennis Marco Borrillo vs. Robert Bryant Jr. - Arizona Open Singles RR - Table Tennis Ping Pong Tournament Arizona Online - Desert Table Tennis Outpost htt...
Star Wars Galactic Quest - Chapter Fourteen Star Wars Galactic Quest Chapter 14 Watch more Galactic Quest videos online at: http://www.freewebs.com/galactic-quest In this episode, the Drifter...
Star Wars Galactic Quest - Chapter Eight Watch more Galactic Quest videos online at: http://www.freewebs.com/galactic-quest In this episode, the two Jedi battle against the Drifter Lord for...
Star Wars Galactic Quest - Chapter Nine Watch more Galactic Quest videos online at: http://www.freewebs.com/galactic-quest In this episode, the two Jedi battle the Sith Overlord for the fi...
Lucky Number Seven 777 פלאי השבע 7 Lucky Number Seven !!! פלאי השבע english subtitle הופעת המספר 7 פעמים כה רבות ביהדות ובבריאה, מעוררת השתאות. מהו סודו של ה-7 ? הכיצד יתכן שהיום השבי...
Star Wars Galactic Quest Episode I RISE OF THE SITH! Saber and Blaster Battle!! Watch more at http://www.swgq.co.nr This video was produced by Plasma Productions. Please visit the official Plasma Productions website at: http://...




Search This Site:










regular expression dd-mmm-yy hh:mm:ss am/pm

netscape compatible menu

displaying last modified date

listbox datasource property

split page title

global string array

web.config can i use - integerated security=true ?

proper way to create initial page view using page.ispostback

prob with microsoft.web.ui.webcontrols.dll

load user control from ddn core into customized module

accessing network folder???

problem formatting master page

call code behind func from javascript?

how to open edit control of any module from tab link ?

spawning batch and js processes

how can i pass variables from vb/aspx-pages to ascx-pages?

difference between '/' and '/default.aspx'

how to create temporary files?

servervariables object in a server control

catching the delete event when a module is deleted from the instance menu

problems connecting to online component gallery

application attempted to perform an operation not allowed by the security policy

scrollable area where a linkbutton can be placed

timer control back button problem

random error: is already declared as 'protected dim withevents

host dnn smtp settings for multiple portal.

page not refreshing with updated data from db

aggregator page not showing blogs

how to separate/publish site

response.redirect for loggedin event ?

 
All Times Are GMT