R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Filter XML on Order page(calendar popup)
Last Post 01 Jan 1900 05:00 AM by . 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
pauldesUser is Offline
Veteran Member
Veteran Member
Posts:1392

--
30 Mar 2006 03:52 AM  
I would think I could just load the XML for this and it would work to pick a date and fill the input box. However this is not the case.

I get the warning sign in the bottom left of IE saying "error on page". Looking into that error, the details are:
Line: 377
Char: 1
Error: Object Expected
Code: 0
Then my URL

Any ideas?
ListX....makes you look brilliant, even though you're not.
pauldesUser is Offline
Veteran Member
Veteran Member
Posts:1392

--
30 Mar 2006 03:56 AM  
OK, I found the other post where you say to add
<script src="http://www.r2idnn.com/js/PopupCalendar.js"></script>
to the module header section.

I did this, but with no luck. the only change in the error output is
Line:380, but I guess that's cause I added the script.
ListX....makes you look brilliant, even though you're not.
bgatesUser is Offline
Basic Member
Basic Member
Posts:196

--
03 Apr 2006 02:05 PM  
Possibly, it's because the skin has a piece of javascript code for "filterKeyPress". The purpose is if someone presses the "Enter" key, it'll be the same as clicking the "Filter" button. Here is the code:


<script>
function filterKeyPress(evtObj) {
if (window.event.keyCode == 13) {
var btn = document.getElementById('TBI_Filter').children[ 0];
btn.onclick();
}
}

</script>


However, if this isn't the issue, then the easiest way to debug javascript issues is to right-click on the page, and go to "View Source". This (unfortunately) pulls it up in Notepad, which does not handle line numbers. You'll have to copy it into some decent text editor, like EditPad or EditPlus (search on download.com for whatever's popular and free). Then goto line 380 and take a look at the code that it's complaining about. If you're still having issues, email me the complete source to bgates@bi4ce.com and I'll gladly take a look at it.
Bob Gates<br>Business Intelligence Force, Inc. (<a href="http://dnn.bi4ce.com"><b>bi4ce</b></a>)
bgatesUser is Offline
Basic Member
Basic Member
Posts:196

--
03 Apr 2006 02:21 PM  
I just moved that script code out of the skin and into the ListX for the filter controls. That should clear things up.
Bob Gates<br>Business Intelligence Force, Inc. (<a href="http://dnn.bi4ce.com"><b>bi4ce</b></a>)
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share