3

I have the following declaration in my code:

<object id="myObject" name="myObject" 
    data="data:application/x-oleobject;base64,ab9qcMENN0WE41oij7hs8764yu+YEwAA2BMABB=="
    classid="clsid:83A04F76-85DF-4f36-A94E-BA3465007CDA" viewastext
    codebase="someAssembly.dll#version=UNKNOWN">
</object>

I want to create an instance of this same object, but inside a .js file, and so I'd like to construct this object without needing to use an tag (if this is even possible):

var myObject = new ActiveXObject( *Something goes here* );

Why is the advanced search not working with price criteria in magento?

The advanced search with all the default product attributes are working fine and gives the desired result except for the price criteria where even if i fill the values with the correct range and price that is present in the product list, the message "No items were found using the following search criteria" is displayed.I tried printing the query that is in the model class within function getProductCollection(), and it seemed ok.Also in the query I checked if all the required attributes are selected and that also seemed fine..Can someone please give me some suggestions to solve this problem?

4

2 回答 2

2

这是创建新实例的方法:

var newObj = new ActiveXObject(servername.typename[, location]);

如您所见,有一个可选参数location可用于访问远程 ActiveX 对象,但请在此处阅读有关它的详细信息: MSDN ActiveXObject(您将在文档末尾找到一些信息)。

于 2009-10-09T16:19:17.067 回答
-2

您只需通过其 id 调用它即可访问“对象”。例如:

<object id="myObject" name="myObject" 
    data="data:application/x-oleobject;base64,ab9qcMENN0WE41oij7hs8764yu+YEwAA2BMABB=="
    classid="clsid:83A04F76-85DF-4f36-A94E-BA3465007CDA" viewastext
    codebase="someAssembly.dll#version=UNKNOWN">
</object>

现在,我可以按如下方式访问它:

myObject.userText = "hello!";

其中“userText”是该对象的属性。

我希望这能回答你的问题。

于 2009-07-15T10:18:53.877 回答