Sign in or 

|
bryantt |
Error IE6 only
Jun 18 2008, 2:37 PM EDT
When I refresh this page in IE6 (works fine Firefox 2 + 3 as well as IE7) I get an error.http://language-exchangesdev.dickinson.edu/GlobalClassNew/wetpaint.aspx?Username=Ryan&UserEmail=burker@dickinson.edu&UserID=5 The error is: line 1180 char 59 Error: 'WPC.VN' is null or not an object Code:0 If I edit the page then click my "content history" link, the browser crashes. I'm using the C# example, with the only change being that I'm setting the user variables from the querystring: string UserEmail = System.Web.HttpContext.Current.Request.QueryString["UserEmail"]; string UserDisplayName = System.Web.HttpContext.Current.Request.QueryString["Username"]; string UserId = System.Web.HttpContext.Current.Request.QueryString["UserID"]; This is the javascript include from the actual page. Thanks. Todd <script src="http://wapi.wetpaint.com/JavaScriptService/getBootstrap.do" type="text/javascript"></script> <script type="text/javascript"> if( window.WPCAPI ) { WPCAPI.setLoginTicket( "0123456789ABCDEF0123456789ABCDEFZYXWVUTSRQPONMLKJIHGFEDCBA" ); // Only required if the user is logged in WPCAPI.setDeveloperKey("4c73b3d8b01f87c2a7b8be098af3aafa16cdc97dd673ebb71015b4c175cd2ff8"); WPCAPI.setNamespace("languageexchanges"); WPCAPI.processLogin = function() { location.href = "http://www.language-exchanges.org/login.aspx"; }; } </script> 1 out of 1 found this valuable. Do you?
Keyword tags:
None
|
|
devin_wetpaint |
1. RE: Error IE6 only
Jun 18 2008, 3:36 PM EDT
Hi Todd!I took a look at http://language-exchangesdev.dickinson.edu/GlobalClassNew/wetpaint.aspx?Username=Ryan&UserEmail=burker@dickinson.edu&UserID=5 just now. Looks like you're including the bootstrap twice, so a couple of our cleanup events are being registered on window's "unload" event. The error you're seeing is that second listener being fired after we've cleared out the resources it is looking for. Try taking out the second bootstrap and if( window.WPCAPI ) block. As for your content history link crashing the browser... it could be due to duplicate element ids on the page. Notice that the second content history link (included in our SSI) has the same ID. If you append something like '&blah' to the end of your id, that should fix the browser crashing issue. Let me know if this helps, and good luck! Thanks, - DC Do you find this valuable? |
|
bryantt |
2. RE: Error IE6 only
Jun 19 2008, 3:44 PM EDT
Thanks for the pointing out the two javascript includes, that fixed the error.I'm not sure I understand about the ID, though, and it is still crashing. This is my history link: <a href="#history" id="WPC-action_cellHistory?cellId=ToddPage" class="WPC-action WPC-nowrap">edit history</a> I can change the CellID to whatever, and if I do the same for httpwebrequest, I get a new page. Which makes sense, but IE6 still crashes. If I change any part of 'WPC-action_cellHistory' in the ID string, nothing happens when I click the link. Do you find this valuable? |
|
devin_wetpaint |
3. RE: Error IE6 only
Jun 19 2008, 4:16 PM EDT
Hi Todd,You're absolutely right about changing the cellId in there. That would surely bring up a different page or break altogether. Considering your custom link snippet... <a href="#history" id="WPC-action_cellHistory?cellId=ToddPage" class="WPC-action WPC-nowrap">edit history</a> The 'id' attribute of any element in an XHTML document must be unique, and I can see that IE6 reacts fairly violently in this case. No problem, though. The cellId in the link is URL-encoded, so you can safely append more parameters to the querystring and still get the same cell history behavior. With only the following change (for example)... <a href="#history" id="WPC-action_cellHistory?cellId=ToddPage&custom=yes" class="WPC-action WPC-nowrap">edit history</a> ...your custom content history link should be more well-behaved with its IE6 comrade. - DC Do you find this valuable? |
|
bryantt |
4. RE: Error IE6 only
Jun 19 2008, 9:17 PM EDT
I'm sorry, for dragging this out, but any change to that ID other than the cellID, and the history window doesn't open.http://language-exchangesdev.dickinson.edu/GlobalClassNew/wetpaint.aspx?Username=Ryan&UserEmail=burker@dickinson.edu&UserID=5#history The same thing happens if I put the original link anywhere below the httpwebrequest. http://language-exchangesdev.dickinson.edu/GlobalClassNew/wetpaint4.aspx?Username=Ryan&UserEmail=burker@dickinson.edu&UserID=5#history Only when I leave the id property completely unchanged and above the webrequest does it work http://language-exchangesdev.dickinson.edu/GlobalClassNew/wetpaint3.aspx?Username=Ryan&UserEmail=burker@dickinson.edu&UserID=5#history Then it only crashes if edit then click history, or vice versa. I can also refresh after each and its fine as well. If you have an idea, that's great. Otherwise, no worries. I'll just set it to reload the page after those commands in IE6 Do you find this valuable? |
|
devin_wetpaint |
5. RE: Error IE6 only
Jun 19 2008, 9:48 PM EDT
Ahh, now I see what's going on here! I should have noticed this before.. your custom history link is not receiving the "hook" it needs because it does not live inside of an element of class "WPC-content". WPCAPI.initialize() only attaches actions to the last WPC-content element it finds on the page at its time of execution. See http://www.wetpaintinjected.com/thread/1535773/WPCAPI.initialize()+documentation for more information on how this works. We're actively looking into providing a better way to integrate with the various hooks in our client application. In the meantime, you could probably "hook" this link by encapsulating it inside of a <div class="WPC-content">...</div> and calling WPCAPI.initialize() immediately afterwards. ...of course, if it seems to work in other browsers just fine, then you can just go the IE6/refresh route. Thanks, and good luck! - DC Do you find this valuable? |
|
bryantt |
6. RE: Error IE6 only
Jun 24 2008, 11:33 AM EDT
I'm sorry, I still can't get this to work:http://language-exchangesdev.dickinson.edu/GlobalClassNew/wetpaint8.aspx?Username=Ryan&UserEmail=burker@dickinson.edu&UserID=5#history I've also just tried copy and pasting the wetpaint area from the Balco WordPress example. It crashes in IE as well. http://language-exchangesdev.dickinson.edu/GlobalClassNew/wetpaint.aspx?Username=Ryan&UserEmail=burker@dickinson.edu&UserID=5#history I assume the actual WordPress works fine in IE6. (I can't actually test because it asks me to login before I edit). The only difference I can think of would be the authentication I'm using. Possible? Just to be safe, could you try editing a cell in the WordPress example then checking the history within IE6. Thanks again, Todd Do you find this valuable? |