<apex:page >
<html>
<form method="get" action="https://cs6.salesforce.com/00ON0000000FOHS" >
<b>Enter Text</b><input type="text" id="pv2" name="pv2"/>
<input type="button" value="Report Generation" class="button" onclick="samepage();"/>
</form>
<script>
Function samepage()
{
Var text =Document.getElementById("pv2").value;
Var Data= text;
$.ajax({
type: "POST",
url: "https://cs6.salesforce.com/00ON0000000FOHS" // form action url
data: Data,
cache: false,
success: function(output)
{
Document.getElementById("output").innerHTML= output;
}
});
}
</script>
This dynamic div
<div id="output" style="border:1px solid;width:1000px;height:500px;">
</div>
</html>
</apex:page>
I need in such a way that half of the page will be static and another half of the page will be dynamic .will change according to user input
for this i had wrote one page it is not returning the div tag?
when i keep input type as submit it resulting the results in new window? i need that in the same page .how can i do that is this the correct way? help me out