Richard Bosworth
|
Hi,
I am having problems with DotNetNuke and the created templates from Artisteer. Basically, when I try to use AJAX in my DotNetNuke website, the styles on the website are lost. The only browser that this works in is IE8 in compatibility mode. The default DNN skin works fine with AJAX, so the obvious conclusion is that Artisteer doesn't work with DNN AJAX!
This is obviously a major concern for me, as I don't want to have wasted my money on Artisteer!
Does anybody have an idea of how to fix the problem?
Thanks,
Richard
|
|
mwoffenden
|
Do you have a link to the site? Would like to take a look.
|
|
Dee
|
I have had the same problem. I hae a Drupal Website and have tried everything to make my Ajax or Jquery fire off.
|
|
Christian
|
Same problem to me with DNN + AJAX in a custom module I'm doing.
Here is my code:
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Button ID="ClickMe" runat="server" Text="Click me" class="art-button" />
</ContentTemplate>
</asp:UpdatePanel>
When page loads, it renders as:
<div id="dnn_ctr386_ViewModuloPrueba_ctl00">
<span class="art-button-wrapper">
<span class="art-button-l"> </span>
<span class="art-button-r"> </span>
<input type="submit" name="dnn$ctr386$ViewModuloPrueba$ClickMe" value="Click me" id="dnn_ctr386_ViewModuloPrueba_ClickMe" class="art-button">
</span>
</div>
But when I click it (and the postback is fired) it changes to:
<div id="dnn_ctr386_ViewModuloPrueba_ctl00">
<input type="submit" name="dnn$ctr386$ViewModuloPrueba$ClickMe" value="Click me" id="dnn_ctr386_ViewModuloPrueba_ClickMe" class="art-button">
</div>
And styles are lost... I've tried with versions 2.5 and 3 (preview), same results.
Any idea on how to get this to work?
|
|
Nihat
|
Same Problem here with Ajax and ASP.net (without using DotNetNuke).
Anything new regarding this issue or even a solution?
|
|
Christian
|
Found a workaround by myself, just define this in your page:
<script type="text/javascript">
function EndRequestHandler() {
artButtonSetup("art-button");
}
window.onload = Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
</script>
Tested with version 3 and works fine
|
|
panos
|
Quote Christian:
Found a workaround by myself, just define this in your page:
<script type="text/javascript">
function EndRequestHandler() {
artButtonSetup("art-button");
}
window.onload = Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
</script>
Tested with version 3 and works fine
Hey Christian,
can you be more specific your post?
I use a skin exported by Artisteer 2.5
I sue DNN 5 and I created a simple module (one button and one textbox. When you click on the button, the current date/time is printed in the textbox).
I have set the partial rendering of the module to true.
Where do you put the script you mention here.?
In the page.ascx of the Artisteer theme? In the ascx file of the control?
Both of the above cause a javascript error on page load and by no means solve the problem.
Any help is appreciated as this is a major bug
|
|
Christian
|
Hi panos,
Put that script anywhere in the ascx file of the control.
The "artButtonSetup" function should be located in a file called "script.js" in the folder of your skin. Try searching for "artButtonSetup" or "ArtButtonsSetupJSHover" in that file, i don't know how it's called in the version you have.
Also, I realized that it wasn't working too well on IE8, showing an error on the 'window' part, so I changed it to this one:
<script type="text/javascript">
function EndRequestHandler() {
artButtonSetup("art-button");
}
$(window).onload = Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
</script>
It works for me
Good luck
|
|
panos
|
Quote Christian:
Hi panos,
Put that script anywhere in the ascx file of the control.
The "artButtonSetup" function should be located in a file called "script.js" in the folder of your skin. Try searching for "artButtonSetup" or "ArtButtonsSetupJSHover" in that file, i don't know how it's called in the version you have.
Also, I realized that it wasn't working too well on IE8, showing an error on the 'window' part, so I changed it to this one:
<script type="text/javascript">
function EndRequestHandler() {
artButtonSetup("art-button");
}
$(window).onload = Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
</script>
It works for me
Good luck
Thanks a lot Christan!!! It worked just fine!
First I tried Artisteer v3. The function's name is artButtonSetup.
In artisteer v2.5 is called artButtonsSetupJsHover.
I placed the script in the default.aspx page, within <dnn:Form tag and now it works for all modues.
Again many thanks.
|
|
René
|
Hi Christian,
i've got the same problem, but this problem comes up then the pages are loaded. The skin is on IE6 and IE7 crashed. On IE8 the skin is well. I try your solution, but it dosn't work on IE6 and IE7
You wrote;
Quote :Put that script anywhere in the ascx file of the control...
You mean the Control or the Desktop-Module? I've put it in the Desktop Module ascx-File, it this wrong?
Best Regards
René
|
|