Showing posts with label ltbutton. Show all posts
Showing posts with label ltbutton. Show all posts

Wednesday, March 28, 2012

postback when button click in firefox

Hi all,

can anybody help me out ?

I have a button and i write ...

<button id=

"clipButton">

<behaviors>

<clickBehavior>

<click>

<invokeMethod method=

"show" target="clipPopup" />

</click>

</clickBehavior>

</behaviors>

</button>

so button is clicked a div is popup ed. Its working fine in IE but in Firefox when i click on button postback occurs...i cud nt understand why its happening...please help me.

Thanks and Regards

Riyaz

Sorry folks, actuaaly i forgot to mention that im using dataNavigator

<dataNavigator id=

"pageNavigator" dataView="dataView"/>

and dataView

<dataView id=

"dataView" pageSize="7">

<bindings>

<binding dataContext=

"ClipartDS" dataPath="data" property="data" />

</bindings>

</dataView>

to display the filtered data from the dataView in the listView. I thought it'ld be a couse of the problem...plz comment on my problem.

Regards

Riyaz


hello.

can you post a small page with the hml + xml-script that demonstrates the problem you're having?


actually when i click button a div is popup with certain cliparts and when i click any clipart popup disappears and selected clipart is shown right hand side.

The HTML part is below:

<

br/>

Click this button to choose a clipart image

<br/><buttonid="clipButton">

ClipArt

</button><br/><divid="ClipArt"></div>

<

divid="PopColors"style="display:none; position: absolute; border-right: blue thin dotted; border-top: blue thin dotted; border-left: blue thin dotted; border-bottom: blue thin dotted;"></div>

<

divid="clipartImageRight"style="left: 500px; position: absolute; top: 290px; "><imgid="clipartImage"alt="Clip"src=""height="35"width="35"/></div>

<

divid="clipTemplate"><spanid="clipItemTemplateParent"><spanid="clipItemTemplate"><span><ahref="javascript:;"><imgid="clip"height="50px"width="50px"alt=""src=""/></a></span></span></span><divid="pageNavigator"><inputtype="button"id="firstPageButton"value="<<"/><inputtype="button"id="previousPageButton"value="<"/><inputtype="button"id="nextPageButton"value=">"/><inputtype="button"id="lastPageButton"value=">>"/> <aid="closePopUP"href="javascript:;"style=" color:Red; left: 350px; position: absolute;">close</a></div></div>

The XML markup is here :

<button id=

"clipButton">

<behaviors>

<clickBehavior>

<click>

<invokeMethod method=

"show" target="clipPopup" />

</click>

</clickBehavior>

</behaviors>

</button>

<dataNavigator id=

"pageNavigator" dataView="dataView"/>

<button id=

"firstPageButton" parent="pageNavigator" command="firstPage">

</button>

<button id=

"previousPageButton" parent="pageNavigator" command="previousPage">

<bindings>

<binding property=

"enabled" dataPath="hasPreviousPage"/>

</bindings>

</button>

<button id=

"nextPageButton" parent="pageNavigator" command="nextPage">

<bindings>

<binding property=

"enabled" dataPath="hasNextPage"/>

</bindings>

</button>

<button id=

"lastPageButton" parent="pageNavigator" command="lastPage">

</button>

<dataView id=

"dataView" pageSize="7">

<bindings>

<binding dataContext=

"ClipartDS" dataPath="data" property="data" />

</bindings>

</dataView>

<listView id=

"ClipArt" itemTemplateParentElementId="clipItemTemplateParent"

tabIndex=

"0" dataIndex="-1" >

<bindings>

<binding dataContext=

"dataView" dataPath="filteredData" property="data"/>

</bindings>

<behaviors>

<popupBehavior id=

"clipPopup" parentElement="clipButton" positioningMode="BottomRight" />

<clickBehavior>

<click>

<invokeMethod method=

"hide" target="clipPopup" />

<invokeMethod method=

"UpdateImage" target="XMPData" />

</click>

</clickBehavior>

</behaviors>

<layoutTemplate>

<template layoutElement=

"clipTemplate"/>

</layoutTemplate>

<itemTemplate>

<template layoutElement=

"clipItemTemplate">

<image id=

"clip">

<bindings>

<binding property=

"imageURL" dataPath="Image"/>

</bindings>

</image>

</template>

</itemTemplate>

</listView>

<image id=

"clipartImage">

<bindings>

<binding property=

"imageURL" dataContext="ClipArt" dataPath="dataItem.Image"/>

</bindings>

</image>

Thanks and Regards

Riyaz